diff options
| author | Aurelien Jarno <aurelien@aurel32.net> | 2009-09-15 00:21:35 +0200 |
|---|---|---|
| committer | Aurelien Jarno <aurelien@aurel32.net> | 2009-09-15 00:21:35 +0200 |
| commit | e09fdfaf32231cf300534bfb8061f4244dd5c545 (patch) | |
| tree | 5ef89550bb7a94432cc9dff8ddcaf5a55c7043f9 | |
| parent | 324a80218503b9cadce25ffb24f247a80aff2def (diff) | |
| download | focaccia-qemu-e09fdfaf32231cf300534bfb8061f4244dd5c545.tar.gz focaccia-qemu-e09fdfaf32231cf300534bfb8061f4244dd5c545.zip | |
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 <aurelien@aurel32.net>
| -rw-r--r-- | curses.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/curses.c b/curses.c index 89680e6fba..3ce12b9237 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); } |