diff options
author | David 'Digit' Turner <digit@android.com> | 2011-02-10 16:52:19 +0100 |
---|---|---|
committer | David 'Digit' Turner <digit@android.com> | 2011-02-10 17:52:56 +0100 |
commit | 5377c5bfde6ba62490417bb0a7d7c1be1151692e (patch) | |
tree | e8d1af24005c5fe9de2397fbd13cfe6f71c29f80 /android/main-common.c | |
parent | 2507cab8a78fb609461a2b9cc4708bab60fc53a4 (diff) | |
download | external_qemu-5377c5bfde6ba62490417bb0a7d7c1be1151692e.zip external_qemu-5377c5bfde6ba62490417bb0a7d7c1be1151692e.tar.gz external_qemu-5377c5bfde6ba62490417bb0a7d7c1be1151692e.tar.bz2 |
Correct auto-detection of default VM heap size.
This patch removes the need for the -m <memory> core option.
Instead, the RAM size is taken by default from qemu-hardware.ini.
Also, the default value of vm.heapSize is no longer 16MB, it is
now adjusted based on the RAM size (16/32/48 values)
+ Get rid of core -lcd-density option (use .ini file instead)
Change-Id: I93919926b61a132c7943a1bb2c41f7a3ab7f2d2f
Diffstat (limited to 'android/main-common.c')
-rw-r--r-- | android/main-common.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/android/main-common.c b/android/main-common.c index e11662c..a63983b 100644 --- a/android/main-common.c +++ b/android/main-common.c @@ -584,22 +584,3 @@ init_sdl_ui(AConfig* skinConfig, qemulator_get()->onion_rotation = rotate; } } - -int64_t get_screen_pixels(AConfig* skinConfig) -{ - int64_t pixels = 0; - AConfig* disp; - - if (skinConfig != NULL) { - disp = aconfig_find(skinConfig, "display"); - if (disp != NULL) { - int width = aconfig_int(disp, "width", 0); - int height = aconfig_int(disp, "height", 0); - pixels = (int64_t)width*height; - } - } - if (pixels == 0) - pixels = 320*240; - - return pixels; -} |