mirror of
https://github.com/encounter/SDL.git
synced 2025-12-18 01:15:24 +00:00
Add #define SDL_HAVE_BLIT_N_RGB565 to compile out RGB565 LUT
This commit is contained in:
@@ -3244,6 +3244,7 @@ static const struct blit_table normal_blit_2[] = {
|
||||
{0x00000F00, 0x000000F0, 0x0000000F, 4, 0x00FF0000, 0x0000FF00, 0x000000FF,
|
||||
BLIT_FEATURE_HAS_ARM_SIMD, Blit_RGB444_RGB888ARMSIMD, NO_ALPHA | COPY_ALPHA},
|
||||
#endif
|
||||
#if SDL_HAVE_BLIT_N_RGB565
|
||||
{0x0000F800, 0x000007E0, 0x0000001F, 4, 0x00FF0000, 0x0000FF00, 0x000000FF,
|
||||
0, Blit_RGB565_ARGB8888, NO_ALPHA | COPY_ALPHA | SET_ALPHA},
|
||||
{0x0000F800, 0x000007E0, 0x0000001F, 4, 0x000000FF, 0x0000FF00, 0x00FF0000,
|
||||
@@ -3252,6 +3253,7 @@ static const struct blit_table normal_blit_2[] = {
|
||||
0, Blit_RGB565_RGBA8888, NO_ALPHA | COPY_ALPHA | SET_ALPHA},
|
||||
{0x0000F800, 0x000007E0, 0x0000001F, 4, 0x0000FF00, 0x00FF0000, 0xFF000000,
|
||||
0, Blit_RGB565_BGRA8888, NO_ALPHA | COPY_ALPHA | SET_ALPHA},
|
||||
#endif
|
||||
|
||||
/* Default for 16-bit RGB source, used if no other blitter matches */
|
||||
{0, 0, 0, 0, 0, 0, 0, 0, BlitNtoN, 0}
|
||||
|
||||
Reference in New Issue
Block a user