mirror of
https://github.com/encounter/SDL.git
synced 2025-06-10 00:23:41 +00:00
wayland: Compare against the old scale when resizing
Compare against the old scale instead of the new or the conditional will always be true.
This commit is contained in:
parent
07aea476ba
commit
768b6728bd
@ -2109,7 +2109,7 @@ Wayland_HandleResize(SDL_Window *window, int width, int height, float scale)
|
|||||||
SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
|
SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
|
||||||
SDL_VideoData *viddata = data->waylandData;
|
SDL_VideoData *viddata = data->waylandData;
|
||||||
int old_w = window->w, old_h = window->h;
|
int old_w = window->w, old_h = window->h;
|
||||||
float old_scale = scale;
|
float old_scale = data->scale_factor;
|
||||||
|
|
||||||
/* Update the window geometry. */
|
/* Update the window geometry. */
|
||||||
window->w = width;
|
window->w = width;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user