From: Aurelien Jarno Date: Mon, 14 Sep 2009 22:21:35 +0000 (+0200) Subject: curses: save 250MB of memory X-Git-Tag: v0.11.0~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=530942382809bfda7aa19d5f9007a6e31f0594e0;p=thirdparty%2Fqemu.git curses: save 250MB of memory Don't call curses_resize() at the end of curses_display_init() as height and width are not yet defined. It will be called later by code from vl.c. This save 250MB of memory when using -curses. Signed-off-by: Aurelien Jarno --- diff --git a/curses.c b/curses.c index 89680e6fbae..3ce12b9237f 100644 --- a/curses.c +++ b/curses.c @@ -368,7 +368,4 @@ void curses_display_init(DisplayState *ds, int full_screen) ds->surface = qemu_create_displaysurface_from(640, 400, 0, 0, (uint8_t*) screen); invalidate = 1; - - /* Standard VGA initial text mode dimensions */ - curses_resize(ds); }