From 768b6728bdd56f6d9e1e96d05beb330d0a6f4572 Mon Sep 17 00:00:00 2001 From: Frank Praznik Date: Sun, 4 Sep 2022 23:39:05 -0400 Subject: [PATCH] wayland: Compare against the old scale when resizing Compare against the old scale instead of the new or the conditional will always be true. --- src/video/wayland/SDL_waylandwindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/wayland/SDL_waylandwindow.c b/src/video/wayland/SDL_waylandwindow.c index dee652069..cdf40851e 100644 --- a/src/video/wayland/SDL_waylandwindow.c +++ b/src/video/wayland/SDL_waylandwindow.c @@ -2109,7 +2109,7 @@ Wayland_HandleResize(SDL_Window *window, int width, int height, float scale) SDL_WindowData *data = (SDL_WindowData *) window->driverdata; SDL_VideoData *viddata = data->waylandData; int old_w = window->w, old_h = window->h; - float old_scale = scale; + float old_scale = data->scale_factor; /* Update the window geometry. */ window->w = width;