diff options
Diffstat (limited to 'android/qemulator.c')
-rw-r--r-- | android/qemulator.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/android/qemulator.c b/android/qemulator.c index 3f427b8..35e7cc8 100644 --- a/android/qemulator.c +++ b/android/qemulator.c @@ -188,6 +188,22 @@ qemulator_done(QEmulator* emulator) } } +void +qemulator_get_screen_size( QEmulator* emulator, + int *width, + int *height ) +{ + AConfig* root = emulator->aconfig; + AConfig* disp; + + *width = *height = 0; + if (root == NULL || (disp = aconfig_find(root, "display")) == NULL) + return; + + *width = aconfig_int(disp, "width", 0); + *height = aconfig_int(disp, "height", 0); +} + SkinLayout* qemulator_get_layout(QEmulator* emulator) { |