SDL/src/video
Frank Praznik a8cb7bbe2f wayland: Add dedupe logic to window geometry configuration
Adds deduplication logic to ConfigureWindowGeometry() to avoid setting redundant backbuffer, viewport and surface opaque region dimensions. State is now only set when the window and/or backbuffer dimensions change.

This repurposes the viewport rect to always hold the actual size of the window, which can differ from the SDL size if things are being scaled. The SDL_Rect was removed in favor of two ints, as the x/y members of the struct were never used, so they just wasted space.

Since the internal variables always have the true window size, the width/height getter functions are no longer required and can be removed.
2022-10-06 14:00:36 -04:00
..
android Android: understand HAL_PIXEL_FORMAT_BGR_565 as a returned value from ANativeWindow_getFormat() (see #6016) 2022-09-03 23:40:14 +02:00
arm ARM: NEON assembly optimization for SDL_FillRect 2019-10-24 21:17:52 -04:00
cocoa Fix some credit comments. 2022-10-02 19:32:36 -07:00
directfb keyboard: Remove no-op calls to SDL_SetKeymap() 2022-07-31 15:46:35 -07:00
dummy video: dummy: Support evdev psuedo-device with no video. 2022-08-08 08:31:04 -07:00
emscripten Adding SDL_GetWindowSizeInPixels for window size in pixels (#6112) 2022-08-24 11:25:13 -07:00
haiku haiku: Fix when screen color depth was 24 bits, SDL_GetWindowSurface would always fail with 'Unknown pixel format' error 2022-09-23 02:51:00 -07:00
khronos Updated to the latest version of OpenGL and Vulkan headers from the Khronos registry 2022-09-14 09:14:47 -07:00
kmsdrm kmsdrm: only negative devindex's are not allowed 2022-09-28 10:29:02 -04:00
nacl video: removed unused devindex argument from bootstrap's create method. 2022-07-26 00:19:52 -04:00
ngage video: removed unused devindex argument from bootstrap's create method. 2022-07-26 00:19:52 -04:00
offscreen SDL_offscreenwindow.c: swap include order of SDL_egl_c.h/SDL_sysvideo.h 2022-09-16 17:05:02 +03:00
os2 video: removed unused devindex argument from bootstrap's create method. 2022-07-26 00:19:52 -04:00
pandora video: Only check major version in SDL_GetWindowWMInfo 2022-05-24 08:56:23 -07:00
ps2 Implement create windows method 2022-08-04 15:41:43 -07:00
psp Remove unused internal header SDL_sysevents.h 2022-07-01 07:39:48 -07:00
qnx QNX: use SDL_malloc 2021-11-22 08:38:46 -08:00
raspberry Remove unused internal header SDL_sysevents.h 2022-07-01 07:39:48 -07:00
riscos video: removed unused devindex argument from bootstrap's create method. 2022-07-26 00:19:52 -04:00
uikit iOS: implement SDL_GetWindowSizeInPixels. 2022-10-05 18:39:18 -07:00
vita video: Only check major version in SDL_GetWindowWMInfo 2022-05-24 08:56:23 -07:00
vivante video: Only check major version in SDL_GetWindowWMInfo 2022-05-24 08:56:23 -07:00
wayland wayland: Add dedupe logic to window geometry configuration 2022-10-06 14:00:36 -04:00
windows Fix: Use WIN_ClientPointToSDL for converting additional mouse coordinates 2022-09-21 03:40:50 +03:00
winrt video: removed unused devindex argument from bootstrap's create method. 2022-07-26 00:19:52 -04:00
x11 Fix incorrect return value in X11_GetPixelFormatFromVisualInfo 2022-09-17 13:17:42 -07:00
yuv2rgb Add optimiztion function with LSX in LoongArch 2022-06-06 08:49:09 -07:00
SDL_blit.c Fixed bug #2199: make SDL_blit_slow handles SDL_PIXELFORMAT_ARGB2101010, storing as RGBA 2022-03-15 17:46:12 +01:00
SDL_blit.h fixed SDL_BlitMap typedef redefinition errors 2022-06-22 01:37:00 +03:00
SDL_blit_0.c Fixed bug #2140: basic support to convert 16 colors palette PIXELFORMAT_INDEX4, to allow conversion to SDL_Texture 2022-02-10 13:44:59 +01:00
SDL_blit_1.c Add clang-format on/off comments where necessary. 2022-05-19 01:31:29 -07:00
SDL_blit_A.c Add clang-format on/off comments where necessary. 2022-05-19 01:31:29 -07:00
SDL_blit_auto.c Add clang-format on/off comments where necessary. 2022-05-19 01:31:29 -07:00
SDL_blit_auto.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_blit_copy.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_blit_copy.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_blit_N.c Replaced Blit4to4CopyAlpha() with optimized SDL_BlitCopy() 2022-09-16 10:09:13 -07:00
SDL_blit_slow.c SDL_blit_slow: remove one nested 'if()' because of ARGB2101010 handling 2022-03-16 18:08:20 +01:00
SDL_blit_slow.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_bmp.c Support loading 2bpp .bmp files 2022-09-17 16:50:45 -07:00
SDL_clipboard.c SDL_HasPrimarySelectionText: fix -Wunreachable-code-return warning. 2022-09-17 00:51:00 +03:00
SDL_egl.c egl: Add support for SDL_GL_FLOATBUFFERS. 2022-08-09 15:41:02 -04:00
SDL_egl_c.h Rename variables in SDL_egl.c to be more intuitive 2022-06-11 14:20:18 -07:00
SDL_fillrect.c Fixed bug #6287 - SDL_FillRect failed for SDL_Surface with BitsPerPixel == 4 2022-09-27 10:21:15 +02:00
SDL_pixels.c Handle SDL_PIXELFORMAT_EXTERNAL_OES in SDL_GetPixelFormatName() 2022-08-16 07:29:45 -07:00
SDL_pixels_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_rect.c SDL_Rect: Added floating point versions of all the rectangle APIs. 2022-03-19 10:35:24 -04:00
SDL_rect_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_rect_impl.h SDL_Rect: Added floating point versions of all the rectangle APIs. 2022-03-19 10:35:24 -04:00
SDL_RLEaccel.c Don't use SDL_SIMDFree() if the pixels haven't been allocated with SDL_SIMDAlloc() 2022-05-11 08:40:17 -07:00
SDL_RLEaccel_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_shape.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_shape_internals.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_stretch.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_surface.c video: Note unused SDL_surface creation parameters for removal in SDL 3 2022-06-13 11:53:53 -07:00
SDL_sysvideo.h Added support for simulated vsync in the renderer 2022-09-16 07:44:40 -07:00
SDL_video.c SDL_video.c: fix variable 'i' may be uninitialized when used here "_this->name = bootstrap[i]->name;" 2022-10-04 10:46:42 +02:00
SDL_vulkan_internal.h cocoa/uikit: Support VK_EXT_metal_surface 2022-08-19 09:48:22 -07:00
SDL_vulkan_utils.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_yuv.c Add optimiztion function with LSX in LoongArch 2022-06-06 08:49:09 -07:00
SDL_yuv_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
sdlgenblit.pl Add clang-format on/off comments where necessary. 2022-05-19 01:31:29 -07:00