]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
sdl: drop dead code
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 28 Feb 2013 09:48:36 +0000 (10:48 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 18 Mar 2013 09:21:58 +0000 (10:21 +0100)
DisplayAllocator removal (commit
187cd1d9f30d13f0d0ef682e4d91cfa3e4cbd472) made this a nop.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/sdl.c

index 5baffa0094fee114e72f1f03b3ce099007e3de2b..fc4dc1b18d5e7b2cec5ba6b788fc30a5af44b856 100644 (file)
--- a/ui/sdl.c
+++ b/ui/sdl.c
@@ -458,11 +458,6 @@ static void sdl_scale(DisplayState *ds, int width, int height)
     }
     do_sdl_resize(width, height, bpp);
     scaling_active = 1;
-    if (!is_buffer_shared(ds->surface)) {
-        ds->surface = qemu_resize_displaysurface(ds, ds_get_width(ds),
-                                                 ds_get_height(ds));
-        dpy_gfx_resize(ds);
-    }
 }
 
 static void toggle_full_screen(DisplayState *ds)