[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT e09fdfa] curses: save 250MB of memory

From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT e09fdfa] curses: save 250MB of memory
Date: Mon, 14 Sep 2009 22:24:37 -0000

From: Aurelien Jarno <address@hidden>

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

This save 250MB of memory when using -curses.

Signed-off-by: Aurelien Jarno <address@hidden>

diff --git a/curses.c b/curses.c
index 89680e6..3ce12b9 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*) 
     invalidate = 1;
-    /* Standard VGA initial text mode dimensions */
-    curses_resize(ds);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]