SDL/include/SDL3
Sam Lantinga c699f3d1d8 Updated SDL high DPI support
We have gotten feedback that abstracting the coordinate system based on the display scale is unexpected and it is difficult to adapt existing applications to the proposed API.

The new approach is to provide the coordinate systems that people expect, but provide additional information that will help applications properly handle high DPI situations.

The concepts needed for high DPI support are documented in README-highdpi.md. An example of automatically adapting the content to display scale changes can be found in SDL_test_common.c, where auto_scale_content is checked.

Also, the SDL_WINDOW_ALLOW_HIGHDPI window flag has been replaced by the SDL_HINT_VIDEO_ENABLE_HIGH_PIXEL_DENSITY hint.

Fixes https://github.com/libsdl-org/SDL/issues/7709
2023-05-17 12:58:00 -07:00
..
SDL.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_assert.h Use #ifdef/#ifndef instead of #if defined/#if \!defined 2023-03-30 21:35:01 +00:00
SDL_atomic.h Rename SDL_atomic_t to SDL_AtomicInt 2023-03-09 09:00:09 -08:00
SDL_audio.h Sync SDL3 wiki -> header 2023-05-09 18:27:15 +00:00
SDL_begin_code.h Use #ifdef/#ifndef instead of #if defined/#if \!defined 2023-03-30 21:35:01 +00:00
SDL_bits.h include: add \brief to includes 2023-02-19 10:01:33 -08:00
SDL_blendmode.h Simplify SDL_BLENDMODE_MUL 2023-03-16 20:25:59 +01:00
SDL_clipboard.h Sync SDL3 wiki -> header 2023-05-12 14:55:13 +00:00
SDL_close_code.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_copying.h include: add \brief to includes 2023-02-19 10:01:33 -08:00
SDL_cpuinfo.h cpuinfo: update \sa's of SDL_HasXXX functions 2023-03-27 06:12:49 +00:00
SDL_egl.h include: add \brief to includes 2023-02-19 10:01:33 -08:00
SDL_endian.h byteswap: Don't use intrinsic byteswap functions with Intel C compiler 2023-03-27 06:12:49 +00:00
SDL_error.h Sync wiki -> headers. 2023-02-24 11:49:41 -05:00
SDL_events.h Updated SDL high DPI support 2023-05-17 12:58:00 -07:00
SDL_filesystem.h Implement SDL_GetPath stub for all OSes 2023-05-08 09:36:39 -07:00
SDL_gamepad.h include: Fixed wiki formatting that got mangled into the headers. 2023-02-26 21:47:17 -05:00
SDL_guid.h include: add \brief to includes 2023-02-19 10:01:33 -08:00
SDL_haptic.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_hidapi.h include: add \brief to includes 2023-02-19 10:01:33 -08:00
SDL_hints.h Updated SDL high DPI support 2023-05-17 12:58:00 -07:00
SDL_init.h include: add \brief to includes 2023-02-19 10:01:33 -08:00
SDL_intrin.h Use #ifdef/#ifndef instead of #if defined/#if \!defined 2023-03-30 21:35:01 +00:00
SDL_joystick.h Rename SDL mutex, semaphore and condition variable types to match SDL 3.0 naming convention 2023-04-28 12:08:33 -07:00
SDL_keyboard.h include: add \brief to includes 2023-02-19 10:01:33 -08:00
SDL_keycode.h include: add \brief to includes 2023-02-19 10:01:33 -08:00
SDL_loadso.h include: add \brief to includes 2023-02-19 10:01:33 -08:00
SDL_locale.h Sync wiki -> headers. 2023-02-24 11:49:41 -05:00
SDL_log.h include: add \brief to includes 2023-02-19 10:01:33 -08:00
SDL_main.h Use #ifdef/#ifndef instead of #if defined/#if \!defined 2023-03-30 21:35:01 +00:00
SDL_main_impl.h Use #ifdef/#ifndef instead of #if defined/#if \!defined 2023-03-30 21:35:01 +00:00
SDL_messagebox.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_metal.h include: add \brief to includes 2023-02-19 10:01:33 -08:00
SDL_misc.h Update \returns to the generic form 2023-02-12 08:21:02 -08:00
SDL_mouse.h Fixed the documentation for SDL_SetRelativeMouseMode() 2023-03-08 22:32:54 -08:00
SDL_mutex.h Changed all variadic macros into fixed (thanks @Wohlstand!) 2023-05-10 06:27:38 -07:00
SDL_oldnames.h Added SDL prefix AUDIO_* constants 2023-05-02 08:09:06 -07:00
SDL_opengl.h Use #ifdef/#ifndef instead of #if defined/#if \!defined 2023-03-30 21:35:01 +00:00
SDL_opengl_glext.h replaced line comments in public header. 2023-02-04 10:02:10 +03:00
SDL_opengles.h include: add \brief to includes 2023-02-19 10:01:33 -08:00
SDL_opengles2.h include: add \brief to includes 2023-02-19 10:01:33 -08:00
SDL_opengles2_gl2.h Switch header convention from #include "SDL.h" to #include <SDL3/SDLh> 2022-11-26 22:15:18 -08:00
SDL_opengles2_gl2ext.h Switch header convention from #include "SDL.h" to #include <SDL3/SDLh> 2022-11-26 22:15:18 -08:00
SDL_opengles2_gl2platform.h Switch header convention from #include "SDL.h" to #include <SDL3/SDLh> 2022-11-26 22:15:18 -08:00
SDL_opengles2_khrplatform.h Switch header convention from #include "SDL.h" to #include <SDL3/SDLh> 2022-11-26 22:15:18 -08:00
SDL_pixels.h include: add \brief to includes 2023-02-19 10:01:33 -08:00
SDL_platform.h include: add \brief to includes 2023-02-19 10:01:33 -08:00
SDL_platform_defines.h Use #ifdef/#ifndef instead of #if defined/#if \!defined 2023-03-30 21:35:01 +00:00
SDL_power.h include: add \brief to includes 2023-02-19 10:01:33 -08:00
SDL_quit.h include: add \brief to includes 2023-02-19 10:01:33 -08:00
SDL_rect.h include: add \brief to includes 2023-02-19 10:01:33 -08:00
SDL_render.h Updated SDL high DPI support 2023-05-17 12:58:00 -07:00
SDL_revision.h SDL_revision.h: added missing newline at end of file. 2023-02-23 23:55:56 +03:00
SDL_rwops.h Use #ifdef/#ifndef instead of #if defined/#if \!defined 2023-03-30 21:35:01 +00:00
SDL_scancode.h include: add \brief to includes 2023-02-19 10:01:33 -08:00
SDL_sensor.h Clarified the expected sensor value when a game controller is at rest 2023-04-06 09:55:01 -07:00
SDL_shape.h SDL_CreateWindow() has been simplified and no longer takes a window position. 2023-03-06 09:50:12 -08:00
SDL_stdinc.h Use #ifdef/#ifndef instead of #if defined/#if \!defined 2023-03-30 21:35:01 +00:00
SDL_surface.h Fixed function documentation references 2023-04-26 14:10:44 -07:00
SDL_system.h Use #ifdef/#ifndef instead of #if defined/#if \!defined 2023-03-30 21:35:01 +00:00
SDL_syswm.h Use #ifdef/#ifndef instead of #if defined/#if \!defined 2023-03-30 21:35:01 +00:00
SDL_test.h include: add \brief to includes 2023-02-19 10:01:33 -08:00
SDL_test_assert.h include: add \brief to includes 2023-02-19 10:01:33 -08:00
SDL_test_common.h Updated SDL high DPI support 2023-05-17 12:58:00 -07:00
SDL_test_compare.h include: add \brief to includes 2023-02-19 10:01:33 -08:00
SDL_test_crc32.h include: add \brief to includes 2023-02-19 10:01:33 -08:00
SDL_test_font.h include: add \brief to includes 2023-02-19 10:01:33 -08:00
SDL_test_fuzzer.h include: add \brief to includes 2023-02-19 10:01:33 -08:00
SDL_test_harness.h include: add \brief to includes 2023-02-19 10:01:33 -08:00
SDL_test_log.h include: add \brief to includes 2023-02-19 10:01:33 -08:00
SDL_test_md5.h include: add \brief to includes 2023-02-19 10:01:33 -08:00
SDL_test_memory.h include: add \brief to includes 2023-02-19 10:01:33 -08:00
SDL_test_random.h include: add \brief to includes 2023-02-19 10:01:33 -08:00
SDL_thread.h include: add \brief to includes 2023-02-19 10:01:33 -08:00
SDL_timer.h include: add \brief to includes 2023-02-19 10:01:33 -08:00
SDL_touch.h Sync wiki -> headers. 2023-02-24 11:49:41 -05:00
SDL_version.h include: add \brief to includes 2023-02-19 10:01:33 -08:00
SDL_video.h Updated SDL high DPI support 2023-05-17 12:58:00 -07:00
SDL_vulkan.h include: add \brief to includes 2023-02-19 10:01:33 -08:00