mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-30 22:03:54 -06:00
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 <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
b473df6e6a
commit
9441987446
2 changed files with 7 additions and 5 deletions
4
sdl.c
4
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue