SDL/src
Yussuf Khalil 63e9827b90 wayland: Fix DPI calculation with scaled outputs
`driverdata->width` and `driverdata->height` represent the width and height in logical pixels on scaled outputs with xdg_output. However, to correctly calculate the display's DPI value, we need to use its native resolution.

For example, on a 27" 4K screen with 175% scaling, we have `width` == 2192 and `height` == 1233, resulting in a bogus value of 92dpi, whereas 162dpi are correct for 3840x2160 pixels at 27 inches.

Tested on GNOME mutter 45.1.
2023-11-12 09:08:31 -05:00
..
atomic [SDL2] pointer boolean (#8523) 2023-11-10 06:30:56 -08:00
audio Re-add SDL_assert() with non boolean ptr syntax (#8531) 2023-11-11 12:29:05 +03:00
core Re-add SDL_assert() with non boolean ptr syntax (#8531) 2023-11-11 12:29:05 +03:00
cpuinfo [SDL2] pointer boolean (#8523) 2023-11-10 06:30:56 -08:00
dynapi [SDL2] pointer boolean (#8523) 2023-11-10 06:30:56 -08:00
events Re-add SDL_assert() with non boolean ptr syntax (#8531) 2023-11-11 12:29:05 +03:00
file [SDL2] pointer boolean (#8523) 2023-11-10 06:30:56 -08:00
filesystem Re-add SDL_assert() with non boolean ptr syntax (#8531) 2023-11-11 12:29:05 +03:00
haptic Re-add SDL_assert() with non boolean ptr syntax (#8531) 2023-11-11 12:29:05 +03:00
hidapi Added support for the GameSir-G7 Controller for Xbox 2023-11-10 17:32:11 -08:00
joystick Re-add SDL_assert() with non boolean ptr syntax (#8531) 2023-11-11 12:29:05 +03:00
libm Updated copyright for 2023 2023-01-09 09:48:21 -08:00
loadso [SDL2] pointer boolean (#8523) 2023-11-10 06:30:56 -08:00
locale Re-add SDL_assert() with non boolean ptr syntax (#8531) 2023-11-11 12:29:05 +03:00
main [SDL2] pointer boolean (#8523) 2023-11-10 06:30:56 -08:00
misc [SDL2] pointer boolean (#8523) 2023-11-10 06:30:56 -08:00
power [SDL2] pointer boolean (#8523) 2023-11-10 06:30:56 -08:00
render Re-add SDL_assert() with non boolean ptr syntax (#8531) 2023-11-11 12:29:05 +03:00
sensor [SDL2] pointer boolean (#8523) 2023-11-10 06:30:56 -08:00
stdlib [SDL2] pointer boolean (#8523) 2023-11-10 06:30:56 -08:00
test Re-add SDL_assert() with non boolean ptr syntax (#8531) 2023-11-11 12:29:05 +03:00
thread [SDL2] pointer boolean (#8523) 2023-11-10 06:30:56 -08:00
timer [SDL2] pointer boolean (#8523) 2023-11-10 06:30:56 -08:00
video wayland: Fix DPI calculation with scaled outputs 2023-11-12 09:08:31 -05:00
SDL.c [SDL2] pointer boolean (#8523) 2023-11-10 06:30:56 -08:00
SDL_assert.c [SDL2] pointer boolean (#8523) 2023-11-10 06:30:56 -08:00
SDL_assert_c.h Updated copyright for 2023 2023-01-09 09:48:21 -08:00
SDL_dataqueue.c Re-add SDL_assert() with non boolean ptr syntax (#8531) 2023-11-11 12:29:05 +03:00
SDL_dataqueue.h dataqueue: Make thread safe. 2023-03-02 16:43:44 -05:00
SDL_error.c [SDL2] pointer boolean (#8523) 2023-11-10 06:30:56 -08:00
SDL_error_c.h Updated copyright for 2023 2023-01-09 09:48:21 -08:00
SDL_guid.c [SDL2] pointer boolean (#8523) 2023-11-10 06:30:56 -08:00
SDL_hints.c [SDL2] pointer boolean (#8523) 2023-11-10 06:30:56 -08:00
SDL_hints_c.h Updated copyright for 2023 2023-01-09 09:48:21 -08:00
SDL_internal.h Updated copyright for 2023 2023-01-09 09:48:21 -08:00
SDL_list.c [SDL2] pointer boolean (#8523) 2023-11-10 06:30:56 -08:00
SDL_list.h Updated copyright for 2023 2023-01-09 09:48:21 -08:00
SDL_log.c [SDL2] pointer boolean (#8523) 2023-11-10 06:30:56 -08:00
SDL_log_c.h Updated copyright for 2023 2023-01-09 09:48:21 -08:00
SDL_utils.c Updated copyright for 2023 2023-01-09 09:48:21 -08:00
SDL_utils_c.h Don't bother re-encoding Latin1 characters in the ASCII range 2023-06-04 05:40:07 -07:00