1
0
Fork 0
forked from len0rd/rockbox
foxbox/firmware/target
Christian Soffke 60f3283f48 sdl: make window resizable, enable high DPI
Tested on Linux, MacOS, and Windows.

On MacOS and Windows, we constrain the window's aspect
ratio by adjusting the size when responding to resize
events.

On Linux, I've not found a way to do so, that doesn't
result in fairly stuttery behavior and weird jumpy
behavior of the resize handle, possibly depending
on your window manager. So, black bars are displayed
around the content.
Maybe someone, at some point, finds a way.
(SDL3 seems to have SDL_SetWindowAspectRatio)

When the window is in fullscreen, black bars are
display necessarily, of course, on all systems,
unless the player GUI has exactly the same aspect
ratio as the screen...

Change-Id: I535e6617497611ea57a4c19e08e552f990859cfe
2024-12-25 08:34:40 -05:00
..
arm ascodec (sansas) add a 10 minute delay before re-enabling charge 2024-12-19 12:11:38 -05:00
coldfire Button queue handling is split from main button driver 2024-11-27 20:16:53 -05:00
hosted sdl: make window resizable, enable high DPI 2024-12-25 08:34:40 -05:00
mips erosqnative: Repurpose stereosw_select setting for output select 2024-12-07 09:20:40 -05:00