mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-09-22 06:59:02 +02:00
wayland: Always use a scale factor of 1 for exclusive fullscreen emulation
This commit is contained in:
parent
cfd6b34b8f
commit
6a999d16fa
@ -266,8 +266,12 @@ static void ConfigureWindowGeometry(SDL_Window *window)
|
|||||||
} else {
|
} else {
|
||||||
UnsetDrawSurfaceViewport(window);
|
UnsetDrawSurfaceViewport(window);
|
||||||
|
|
||||||
|
if (!FullscreenModeEmulation(window)) {
|
||||||
/* Round to the next integer in case of a fractional value. */
|
/* Round to the next integer in case of a fractional value. */
|
||||||
wl_surface_set_buffer_scale(data->surface, (int32_t)SDL_ceilf(data->scale_factor));
|
wl_surface_set_buffer_scale(data->surface, (int32_t)SDL_ceilf(data->scale_factor));
|
||||||
|
} else {
|
||||||
|
wl_surface_set_buffer_scale(data->surface, 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Clamp the physical window size to the system minimum required size. */
|
/* Clamp the physical window size to the system minimum required size. */
|
||||||
|
Loading…
Reference in New Issue
Block a user