mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-22 16:25:34 +02:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user