SDL/src/render
Sam Lantinga 49733e3a0d 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
..
direct3d Fixed bug 2625 - Direct3D9 with SDL_TEXTUREACCESS_TARGET textures causes an application crash 2015-06-04 00:56:11 -07:00
direct3d11 Fixed clip rectangle calculation when there is a viewport offset 2015-05-28 18:57:10 -07:00
opengl Fixed clip rectangle calculation when there is a viewport offset 2015-05-28 18:57:10 -07:00
opengles Fixed comments at conditional compilation macros. 2015-06-05 19:41:18 +02:00
opengles2 Fixed bug 2908 - Fix clang warnings 2015-06-14 19:10:51 -07:00
psp Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
software 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
mmx.h Made it possible to create a texture of any format, even if not supported by the renderer. 2011-02-03 00:19:40 -08:00
SDL_d3dmath.c Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_d3dmath.h Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_render.c Fixed bug 1550 - SDL_RenderCopy/CopyEx in software should optionally render 8bit alpha 2015-06-19 23:20:43 -07:00
SDL_sysrender.h Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_yuv_mmx.c Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_yuv_sw_c.h Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_yuv_sw.c Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00