SDL/src
David Gow 84808ea4bb video: Add SDL_PremultiplySurfaceAlphaToARGB8888()
A number of video backends need to get ARGB8888 formatted surfaces with
premultiplied alpha, typically for mouse cursors. Add a new function to
do this, based loosely on legacy_alpha_premultiply_ARGB8888() from the
KMSDRM backend.

The new function, SDL_PremultiplySurfaceAlphaToARGB8888() takes two
arguments:
- src: an SDL_Surface to be converted.
- dst: a buffer which is filled with premultiplied ARGB8888 data of the
  same size as the surface (assuming pitch = w).

This is not heavily optimised: it just repeatedly calls SDL_GetRGBA() to
do the conversion, but should do for now.
2021-10-22 05:50:00 -07:00
..
atomic atomic: detect clang separately 2021-09-16 17:33:52 -07:00
audio Fixed bug #4534: NEON implementation of Convert51ToStereo (Thanks Ryan!) 2021-10-14 23:17:08 +02:00
core os2, geniconv: replaced many uses of libc calls with SDL_ counterparts. 2021-10-18 14:11:20 +03:00
cpuinfo Fix AltiVec detection on FreeBSD 2021-09-21 09:57:10 -07:00
dynapi Add SDL_GetWindowICCProfile(). (#4314) 2021-10-21 17:37:20 -07:00
events Add SDL_GetWindowICCProfile(). (#4314) 2021-10-21 17:37:20 -07:00
file Add support for Vita file API in SDL_rwops 2021-03-08 09:07:12 -08:00
filesystem Improve RISC OS implementations of SDL_GetBasePath and SDL_GetPrefPath 2021-10-12 13:07:52 -07:00
haptic Fixed some accidental uses of external C runtime functions 2021-09-22 09:06:45 -07:00
hidapi Use correct relative include path 2021-10-01 16:27:59 -07:00
joystick Don't detect the ROG Chakram mouse as a joystick 2021-10-20 15:19:22 -07:00
libm Updated copyright for 2021 2021-01-02 10:25:38 -08:00
loadso Updated copyright for 2021 2021-01-02 10:25:38 -08:00
locale consistently use TEXT() macro with LoadLibrary() and GetModuleHandle() 2021-01-04 01:23:50 +03:00
main Updated to version 2.0.17 for development 2021-08-10 15:02:36 -07:00
misc unix: OpenURL: Move unsetenv above vfork 2021-08-01 03:58:49 -07:00
power Fixed some accidental uses of external C runtime functions 2021-09-22 09:06:45 -07:00
render Added a hint for alternate OpenGL NV12 data format 2021-10-21 20:48:05 -07:00
sensor Deprecate dolcesdk 2021-03-08 09:07:12 -08:00
stdlib fix SDL_atoi() 2021-10-04 21:32:00 +03:00
test Added Ctrl-T to toggle topmost mode in test programs 2021-08-13 17:53:39 -07:00
thread Vita: fix thread detach. Remove leftover KillThread 2021-09-20 11:03:02 -07:00
timer Formatting 2021-03-08 09:07:12 -08:00
video video: Add SDL_PremultiplySurfaceAlphaToARGB8888() 2021-10-22 05:50:00 -07:00
SDL.c Ensure that SDL_InitSubSystem quits subsystems after an error. (#4834) 2021-10-12 15:55:31 -07:00
SDL_assert.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_assert_c.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_dataqueue.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_dataqueue.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_error.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_error_c.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_hints.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_hints_c.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_internal.h Add SDL_HAVE_RENDER_GEOMETRY to compile or not with RenderGeometry support 2021-08-19 00:10:59 +02:00
SDL_log.c log: Fixed compiler warnings on 64-bit Visual Studio. 2021-08-04 02:34:09 -04:00