SDL/src/render
Sam Lantinga b7ede6cc47 Fixed bug 1550 - SDL_RenderCopy/CopyEx in software should optionally render 8bit alpha
Adam M.

There are three problems in the code that I see.
1. SW_RenderCopyEx enables a color key on surface_scaled even if the source surface didn't have a color key.
2. SW_RenderCopyEx doesn't copy blend mode, color mod, or alpha mod from src to surface_scaled.
3. When SDL_BlitScaled(src, srcrect, surface_scaled, &tmp_rect) is called, it blends the src pixels into surface_scaled instead of overwriting them (if src has blending, etc. enabled).

I've attached a patch that 1) fixes the three problems that I mentioned, 2) adds the requested performance improvement of using the regular blit function if no rotation or flipping is needed, 3) avoids cloning the source surface if no stretching is required, and simplifies the rotation code slightly.
2015-06-19 23:20:43 -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 1550 - SDL_RenderCopy/CopyEx in software should optionally render 8bit alpha 2015-06-19 23:20:43 -07:00
mmx.h Windows: Always set the system timer resolution to 1ms by default. 2015-04-20 12:22:44 -04: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 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