wayland: Calculate the fullscreen exclusive pointer scale from the viewport dimensions

Fixes the pointer scale when using the aspect-correct scaling mode.
This commit is contained in:
Frank Praznik
2026-04-19 23:31:00 -04:00
parent 010e892752
commit 03ceaca19c

View File

@@ -362,8 +362,8 @@ static void ConfigureWindowGeometry(SDL_Window *window)
data->current.logical_height = window->current_fullscreen_mode.h;
}
data->pointer_scale.x = (double)window_width / (double)data->current.logical_width;
data->pointer_scale.y = (double)window_height / (double)data->current.logical_height;
data->pointer_scale.x = (double)window_width / (double)viewport_width;
data->pointer_scale.y = (double)window_height / (double)viewport_height;
}
} else {
if (!data->scale_to_display) {