From 5377c5bfde6ba62490417bb0a7d7c1be1151692e Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Thu, 10 Feb 2011 16:52:19 +0100 Subject: Correct auto-detection of default VM heap size. This patch removes the need for the -m 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 --- android/main-common.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'android/main-common.c') 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; -} -- cgit v1.1