Browse Source

wayland: Remove additional instance of setting the viewport source rect

Frank Praznik 1 year ago
parent
commit
cb39740cfd
1 changed files with 0 additions and 3 deletions
  1. 0 3
      src/video/wayland/SDL_waylandwindow.c

+ 0 - 3
src/video/wayland/SDL_waylandwindow.c

@@ -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. */