SDL/src
Sam Lantinga d763a9f64d Fixed bug 2538 - SDL_SetTextureAlphaMod does not work with SDL_FlipMode or rotation in the software renderer
Adam M.

When setting a texture alpha mod other than 255 and also specifying a flip mode in the software renderer, the rendering fails. When the texture has an alpha channel, it becomes invisible when flipped. When the texture does not have an alpha channel, it is flipped but the colors are wrong: the alpha mod makes the texture darker rather than more translucent.

0) Initialize a software renderer.
1) Load 16-bit 565 or 32-bit texture.
2) Set texture blend mode to BLEND.
3) Set texture alpha mod to 150.
4) Draw the texture flipped horizontally and/or vertically.
2015-06-19 23:22:53 -07:00
..
atomic Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
audio AIX: Fixed nearly impossible file descriptor leak. 2015-06-04 17:52:51 +02:00
core Make some string literals "const char *", not "char *" (thanks, Martin!). 2015-06-12 11:58:31 -04:00
cpuinfo Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
dynapi Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
events Fixed crash if allocation for touch device failed. 2015-06-12 21:10:31 +02:00
file Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
filesystem Windows SDL_GetBasePath: free string on failure. 2015-05-28 15:36:27 -04:00
haptic Haptic/Linux: Keep track of device numbers properly to track duplicates. 2015-06-16 00:57:45 -04:00
joystick Fixed bug 2948 - [Android] Arrow keys from external keyboard are not received 2015-06-17 00:00:53 -07:00
libm Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
loadso Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
main Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
power Linux: Implemented sysfs-based version of SDL_GetPowerInfo(). 2015-06-03 13:11:28 -07:00
render Fixed bug 2538 - SDL_SetTextureAlphaMod does not work with SDL_FlipMode or rotation in the software renderer 2015-06-19 23:22:53 -07:00
stdlib Let's assume that if VS2005 and VS2010 do it, VS2008 probably does, too. 2015-06-07 20:00:20 -04:00
test Some setups need _GNU_SOURCE to make LLONG_MAX available (thanks, Ozkan!). 2015-05-26 16:31:11 -04:00
thread Android: Fixed two warnings. 2015-06-17 21:05:25 +02:00
timer Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
video Fixed bug 3023 - setting a white and then non-white texture color mod breaks the texture with software renderer 2015-06-19 23:12:13 -07:00
SDL.c Stack hint should look for 0, not -1, and not care about environment variables. 2015-05-26 21:19:23 -04:00
SDL_assert.c Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_assert_c.h Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_error.c Fixed bug 2210 - Initializing Video produces unnecessary errors 2015-05-28 12:31:25 -07:00
SDL_error_c.h Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_hints.c Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_internal.h Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_log.c Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00