From 9441987446d204910a7707272c0f3a7d17f9830c Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Thu, 11 Feb 2010 00:29:56 +0100 Subject: remove knowledge of defaultallocator_free_displaysurface from sdl.c Let register_displayallocator hand over the old width/height to the new allocator. Signed-off-by: Paolo Bonzini Signed-off-by: Anthony Liguori --- sdl.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'sdl.c') diff --git a/sdl.c b/sdl.c index cf27ad2..a9b4323 100644 --- a/sdl.c +++ b/sdl.c @@ -872,10 +872,6 @@ void sdl_display_init(DisplayState *ds, int full_screen, int no_frame) da->resize_displaysurface = sdl_resize_displaysurface; da->free_displaysurface = sdl_free_displaysurface; if (register_displayallocator(ds, da) == da) { - DisplaySurface *surf; - surf = sdl_create_displaysurface(ds_get_width(ds), ds_get_height(ds)); - defaultallocator_free_displaysurface(ds->surface); - ds->surface = surf; dpy_resize(ds); } -- cgit v1.1