diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2011-06-27 11:25:23 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-06-27 11:25:23 -0500 |
commit | bb820c03e2d638038fd48f42ee71e4004e55aba8 (patch) | |
tree | 43266acaef2a63fcd06de565a42c264a4f71e95f /console.c | |
parent | 2fb0c09f4ff036f68474277ed4edc036f6529de8 (diff) | |
parent | 20fa53ece42bec6ce5db801bead125277b26ab8a (diff) |
Merge remote-tracking branch 'stefanha/trivial-patches' into staging
Diffstat (limited to 'console.c')
-rw-r--r-- | console.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1349,8 +1349,15 @@ static struct DisplayAllocator default_allocator = { static void dumb_display_init(void) { DisplayState *ds = qemu_mallocz(sizeof(DisplayState)); + int width = 640; + int height = 480; + ds->allocator = &default_allocator; - ds->surface = qemu_create_displaysurface(ds, 640, 480); + if (is_fixedsize_console()) { + width = active_console->g_width; + height = active_console->g_height; + } + ds->surface = qemu_create_displaysurface(ds, width, height); register_displaystate(ds); } |