]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
curses: save 250MB of memory
authorAurelien Jarno <aurelien@aurel32.net>
Mon, 14 Sep 2009 22:21:35 +0000 (00:21 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Mon, 14 Sep 2009 22:27:40 +0000 (00:27 +0200)
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 <aurelien@aurel32.net>
curses.c

index d699b5e505bc24aebf3b1a27da3eba2120a024b9..5d8801e0b587117fb47ed0ce34c3a420df4d9348 100644 (file)
--- a/curses.c
+++ b/curses.c
@@ -370,7 +370,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);
 }