mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-21 10:51:03 +00:00
b7ede6cc47
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. |
||
---|---|---|
.. | ||
direct3d | ||
direct3d11 | ||
opengl | ||
opengles | ||
opengles2 | ||
psp | ||
software | ||
mmx.h | ||
SDL_d3dmath.c | ||
SDL_d3dmath.h | ||
SDL_render.c | ||
SDL_sysrender.h | ||
SDL_yuv_mmx.c | ||
SDL_yuv_sw.c | ||
SDL_yuv_sw_c.h |