summary refs log tree commit diff stats
path: root/hw
diff options
context:
space:
mode:
Diffstat (limited to 'hw')
-rw-r--r--hw/omap_sx1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/omap_sx1.c b/hw/omap_sx1.c
index 9eaa9131b2..67d317a09e 100644
--- a/hw/omap_sx1.c
+++ b/hw/omap_sx1.c
@@ -201,7 +201,8 @@ static void sx1_init(ram_addr_t ram_size, int vga_ram_size,
         cpu->env->regs[15] = 0x00000000;
     }
 
-    dpy_resize(ds, 640, 480);
+    ds->surface = qemu_resize_displaysurface(ds->surface, 640, 480, 32, 4 * 640);
+    dpy_resize(ds);
 }
 
 static void sx1_init_v1(ram_addr_t ram_size, int vga_ram_size,