SDL/src/video
Simon McVittie 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel
This avoids assuming that the pixels are suitably aligned for direct
access, which there's no guarantee that they are; in particular,
3-bytes-per-pixel RGB images are likely to have 3 out of 4 pixels
misaligned. On x86, dereferencing a misaligned pointer does what you
would expect, but on other architectures it's undefined whether it will
work, crash with SIGBUS, or silently give a wrong answer.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2023-10-10 03:23:20 -07:00
..
android Removed unused code 2023-09-27 10:18:34 -07:00
arm Fix remaining typos (#7921) 2023-07-03 12:46:47 -07:00
cocoa macOS: Don't raise the parent top-level window when raising a child window, only raise the child window to the top of the parent 2023-08-30 20:29:57 -07:00
dummy Fixed automation tests using the dummy video driver 2023-07-25 11:48:10 -07:00
emscripten emscripten: Restore compatibility with existing emsdk releases. 2023-09-20 14:32:41 -04:00
gdk gdk: Virtual keyboard and text input backend 2023-05-31 13:11:39 -07:00
haiku Fixed build errors when OpenGL isn't enabled 2023-08-05 00:25:12 -07:00
khronos remove unused vulkan/*.hpp files. 2023-07-17 00:10:50 +03:00
kmsdrm avoid type redefinition errors after commit ee806597b9. 2023-08-27 22:22:10 +03:00
n3ds Allocate displays as an array of pointers instead of an array of objects 2023-08-01 19:24:29 -07:00
ngage Fix some issues caught by check_stdlib_usage.py 2023-06-27 06:19:06 -07:00
offscreen Rename SDL_PIXELFORMAT_RGB888 and SDL_PIXELFORMAT_BGR888 to SDL_PIXELFORMAT_XRGB8888 and SDL_PIXELFORMAT_XBGR8888 for clarity 2023-07-01 17:58:34 -07:00
ps2
psp
qnx Fix remaining typos (#7921) 2023-07-03 12:46:47 -07:00
raspberry Fix remaining typos (#7921) 2023-07-03 12:46:47 -07:00
riscos Rename SDL_PIXELFORMAT_RGB888 and SDL_PIXELFORMAT_BGR888 to SDL_PIXELFORMAT_XRGB8888 and SDL_PIXELFORMAT_XBGR8888 for clarity 2023-07-01 17:58:34 -07:00
uikit video: Remove SDL_GetFocusWindow() 2023-09-18 11:14:42 -04:00
vita Updated source to match SDL function prototype style 2023-05-23 11:29:41 -07:00
vivante avoid type redefinition errors after commit ee806597b9. 2023-08-27 22:22:10 +03:00
wayland wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2023-10-09 12:47:11 -04:00
windows Windows: fix for client rect resizing larger each time we came from exclusive fullscreen -> windowed on a monitor with HiDPI set. The problem was we were using the monitor DPI rather than the window DPI so AdjustWindowRectExForDpi was giving us an incorrect size which would be too large for the client rect. Closes #8237. 2023-09-12 07:36:55 -07:00
winrt Fix remaining typos (#7921) 2023-07-03 12:46:47 -07:00
x11 x11: Always update clipboard owner 2023-09-15 05:21:14 -07:00
yuv2rgb yuv_rgb: Comment out unused code. 2023-08-25 19:42:46 -04:00
SDL_blit.c The rectangles passed to SDL_BlitSurfaceUnchecked() and SDL_BlitSurfaceUncheckedScaled() are const. 2023-07-02 18:45:11 -07:00
SDL_blit.h Rename SDL_PIXELFORMAT_RGB888 and SDL_PIXELFORMAT_BGR888 to SDL_PIXELFORMAT_XRGB8888 and SDL_PIXELFORMAT_XBGR8888 for clarity 2023-07-01 17:58:34 -07:00
SDL_blit_0.c Added support for blitting SDL_PIXELFORMAT_INDEX1LSB 2023-06-19 08:38:07 -07:00
SDL_blit_1.c Updated source to match SDL function prototype style 2023-05-23 11:29:41 -07:00
SDL_blit_A.c Updated source to match SDL function prototype style 2023-05-23 11:29:41 -07:00
SDL_blit_auto.c Rename SDL_PIXELFORMAT_RGB888 and SDL_PIXELFORMAT_BGR888 to SDL_PIXELFORMAT_XRGB8888 and SDL_PIXELFORMAT_XBGR8888 for clarity 2023-07-01 17:58:34 -07:00
SDL_blit_auto.h
SDL_blit_copy.c
SDL_blit_copy.h
SDL_blit_N.c Fix remaining typos (#7921) 2023-07-03 12:46:47 -07:00
SDL_blit_slow.c blit_slow: don't read destination pixel when you're going to discard it anyways 2023-10-04 19:41:50 -07:00
SDL_blit_slow.h
SDL_bmp.c Fixed warning C4389: '!=': signed/unsigned mismatch 2023-08-25 08:49:49 -07:00
SDL_clipboard.c Only clear the clipboard if setting empty text 2023-07-06 08:32:34 -07:00
SDL_clipboard_c.h Reimplement clipboard text in terms of clipboard data 2023-07-05 20:06:59 -07:00
SDL_egl.c Updated source to match SDL function prototype style 2023-05-23 11:29:41 -07:00
SDL_egl_c.h
SDL_fillrect.c
SDL_pixels.c Fixed setting invalid bpp for FOURCC formats in SDL_GetMasksForPixelFormatEnum() 2023-08-07 22:20:40 -07:00
SDL_pixels_c.h
SDL_rect.c Updated source to match SDL function prototype style 2023-05-23 11:29:41 -07:00
SDL_rect_c.h
SDL_rect_impl.h Updated source to match SDL function prototype style 2023-05-23 11:29:41 -07:00
SDL_RLEaccel.c The rectangles passed to SDL_BlitSurfaceUnchecked() and SDL_BlitSurfaceUncheckedScaled() are const. 2023-07-02 18:45:11 -07:00
SDL_RLEaccel_c.h
SDL_shape.c shape: Use SDL[Test]_ReadSurfacePixel 2023-10-10 03:23:20 -07:00
SDL_shape_internals.h
SDL_stretch.c Updated source to match SDL function prototype style 2023-05-23 11:29:41 -07:00
SDL_surface.c surface: Add a private SDL_ReadSurfacePixel 2023-10-10 03:23:20 -07:00
SDL_surface_pixel_impl.h test: Extract SDLTest_ReadSurfacePixel 2023-10-10 03:23:20 -07:00
SDL_sysvideo.h Fixed warning: this function declaration is not a prototype 2023-09-18 13:09:28 -07:00
SDL_video.c video: Streamline a little deinit code. 2023-09-25 16:26:14 -04:00
SDL_video_c.h surface: Add a private SDL_ReadSurfacePixel 2023-10-10 03:23:20 -07:00
SDL_vulkan_internal.h Fix remaining typos (#7921) 2023-07-03 12:46:47 -07:00
SDL_vulkan_utils.c
SDL_yuv.c Rename SDL_PIXELFORMAT_RGB888 and SDL_PIXELFORMAT_BGR888 to SDL_PIXELFORMAT_XRGB8888 and SDL_PIXELFORMAT_XBGR8888 for clarity 2023-07-01 17:58:34 -07:00
SDL_yuv_c.h
sdlgenblit.pl Fix remaining typos (#7921) 2023-07-03 12:46:47 -07:00