]> git.proxmox.com Git - qemu.git/blobdiff - hw/nseries.c
DisplayState interface change (Stefano Stabellini)
[qemu.git] / hw / nseries.c
index d52a5e9efdbf733e45c8da8b75079729236f9c6f..9559fd0245fb83e377008325961111b5eba4ed2c 100644 (file)
@@ -1360,7 +1360,8 @@ static void n8x0_init(ram_addr_t ram_size, const char *boot_device,
     /* FIXME: We shouldn't really be doing this here.  The LCD controller
        will set the size once configured, so this just sets an initial
        size until the guest activates the display.  */
-    dpy_resize(ds, 800, 480);
+    ds->surface = qemu_resize_displaysurface(ds->surface, 800, 480, 32, 4 * 800);
+    dpy_resize(ds);
 }
 
 static struct arm_boot_info n800_binfo = {