wayland: Remove additional instance of setting the viewport source rect

main
Frank Praznik 2024-03-17 13:10:48 -04:00
parent a206e1e3c0
commit cb39740cfd
1 changed files with 0 additions and 3 deletions

View File

@ -375,9 +375,6 @@ static void ConfigureWindowGeometry(SDL_Window *window)
if (window_size_changed || drawable_size_changed) {
if (data->viewport) {
wp_viewport_set_source(data->viewport,
wl_fixed_from_int(0), wl_fixed_from_int(0),
wl_fixed_from_int(data->current.drawable_width), wl_fixed_from_int(data->current.drawable_height));
wp_viewport_set_destination(data->viewport, window_width, window_height);
} else if (window->flags & SDL_WINDOW_HIGH_PIXEL_DENSITY) {
/* Don't change this if the DPI awareness flag is unset, as an application may have set this manually on a custom or external surface. */