From 74d7acec6643694132a127feb5ccadda7ea793d6 Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Wed, 2 Feb 2011 13:21:03 +0100 Subject: Separate init_skinned_ui() into two functions. This removes init_skinned_ui() and adds parse_skin_files() and init_sdl_ui(). The first function only parses skin files and options, and doesn't do anything related to the UI. The second function does setup the SDL UI after all options/skin processing has been performed. We also modify main.c and main-ui.c to move the call to init_sdl_ui() as far as possible after the options parsing. + Move core attachment code to the end of qemu_main() in main-ui.c Change-Id: I2bf5f0a096d827ae1fee070a8fa45cbd4629d54f --- android/qemulator.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'android/qemulator.c') diff --git a/android/qemulator.c b/android/qemulator.c index f1b2dbc..36a9ec8 100644 --- a/android/qemulator.c +++ b/android/qemulator.c @@ -190,22 +190,6 @@ 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) { -- cgit v1.1