diff options
| author | Jefferson González <jgmdev@gmail.com> | 2025-12-29 13:59:26 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-29 13:59:26 -0400 |
| commit | 995733efbf98cd90a4c7661d8f5a55a36b964914 (patch) | |
| tree | 39444e68d8de17f41adc10891e28155b226a5c24 /src/lib/lua52/lcode.c | |
| parent | 1ffea624b0b713a49d5a9f285583a32626c5e763 (diff) | |
| download | pragtical-995733efbf98cd90a4c7661d8f5a55a36b964914.tar.gz pragtical-995733efbf98cd90a4c7661d8f5a55a36b964914.zip | |
Reorder current/default scales on get_display_info (#402)
On wayland SDL_GetDisplayContentScale() seems to always return
1, even if user changed the display scale factor. Meanwhile, the
display pixel_density does contains the proper scale factor.
On windows SDL_GetDisplayContentScale() properly returns the user
configured scale factor for the display while the display
pixel_density is set to 1.
Now we flip the values when this anomaly is detected to properly
return the current scale factor.
Hopefully this really fixes the issue reported by Amer on #393
Diffstat (limited to 'src/lib/lua52/lcode.c')
0 files changed, 0 insertions, 0 deletions
