diff options
author | Vladimir Chtchetkine <vchtchetkine@google.com> | 2011-01-12 14:38:19 -0800 |
---|---|---|
committer | Vladimir Chtchetkine <vchtchetkine@google.com> | 2011-01-13 08:30:30 -0800 |
commit | cf755ea6f4b850a6afd12ef8308da8def7ba8941 (patch) | |
tree | e67ff4e0ba37812ef4fae43e39f99a64b0802c45 /android/qemulator.c | |
parent | aedf1d5c1c7f5386b3e01c74853a9928bd73daa8 (diff) | |
download | external_qemu-cf755ea6f4b850a6afd12ef8308da8def7ba8941.zip external_qemu-cf755ea6f4b850a6afd12ef8308da8def7ba8941.tar.gz external_qemu-cf755ea6f4b850a6afd12ef8308da8def7ba8941.tar.bz2 |
Hook up framebuffer changes with UI window
Change-Id: Ib2dff72c808614cd6ded096d62717afc1c41e667
Diffstat (limited to 'android/qemulator.c')
-rw-r--r-- | android/qemulator.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/android/qemulator.c b/android/qemulator.c index 32983be..3f427b8 100644 --- a/android/qemulator.c +++ b/android/qemulator.c @@ -194,6 +194,19 @@ qemulator_get_layout(QEmulator* emulator) return emulator->layout; } +QFrameBuffer* +qemulator_get_first_framebuffer(QEmulator* emulator) +{ + /* register as a framebuffer clients for all displays defined in the skin file */ + SKIN_FILE_LOOP_PARTS( emulator->layout_file, part ) + SkinDisplay* disp = part->display; + if (disp->valid) { + return disp->qfbuff; + } + SKIN_FILE_LOOP_END_PARTS + return NULL; +} + void qemulator_set_title(QEmulator* emulator) { |