Skip to content
  • Gerd Hoffmann's avatar
    46522a82
    sdl2: overhaul window size handling · 46522a82
    Gerd Hoffmann authored
    
    
    Split do_sdl_resize function (which does alot more than just resizing)
    into three: sdl2_window_{create,destroy,resize}.
    
    Fix SDL_Renderer handling: must be guest display size not host window
    size, and SDL2 will magically handle all scaling for us.
    
    Make fullscreen actually enter fullscreen mode and simplify the code.
    There is no need to store the original window size, the window manager
    will do that for us.
    
    Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
    Reviewed-by: default avatarMax Reitz <mreitz@redhat.com>
    46522a82
    sdl2: overhaul window size handling
    Gerd Hoffmann authored
    
    
    Split do_sdl_resize function (which does alot more than just resizing)
    into three: sdl2_window_{create,destroy,resize}.
    
    Fix SDL_Renderer handling: must be guest display size not host window
    size, and SDL2 will magically handle all scaling for us.
    
    Make fullscreen actually enter fullscreen mode and simplify the code.
    There is no need to store the original window size, the window manager
    will do that for us.
    
    Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
    Reviewed-by: default avatarMax Reitz <mreitz@redhat.com>
Loading