sdl2_frt/src/render
Sam Lantinga 9c48365524 Fixed bug 3029 - software renderer cuts off edges when rotate-blitting with a multiple of 90 degrees
Adam M.

When doing a rotated texture copy with the software renderer, where the angle is a multiple of 90 degrees, one or two edges of the image get cut off. This is because of the following line in sw_rotate.c:
    if ((unsigned)dx < (unsigned)sw && (unsigned)dy < (unsigned)sh) {
which is effectively saying:
    if (dx >= 0 && dx < src->w-1 && dy >= 0 && dy < src->h-1) {

As a result, it doesn't process pixels in the right column or bottom row of the source image (except when they're accessed as part of the bilinear filtering for nearby pixels). This causes it to look like the edges are cut off, and it's especially obvious with an exact multiple of 90 degrees.
2016-10-07 18:00:30 -07:00
..
direct3d Fixed bug 3345 - SDL_RenderClear inconsistency with ClipRect 2016-10-01 11:46:32 -07:00
direct3d11 Fixed MinGW-w64 build warnings in SDL_render_d3d11.c 2016-10-01 18:49:15 -04:00
opengl Fixed wrong pixel format if reading pixels from OpenGL renderer. 2016-10-02 22:32:35 +02:00
opengles Fixed bug 3422 - OpenGL ES 1.1 renderer: SDL_UpdateTexture breaks later function calls (missing glDisable) 2016-10-01 13:07:36 -07:00
opengles2 Fixed bug 3169 - GLES2_CreateRenderer does not check SDL_GL_GetAttribute result, causing use of uninitialized data 2016-10-01 13:33:32 -07:00
psp PSP: Fixed returning success from unsupported SDL_RenderReadPixels(). 2016-04-01 21:13:58 +02:00
software Fixed bug 3029 - software renderer cuts off edges when rotate-blitting with a multiple of 90 degrees 2016-10-07 18:00:30 -07:00
mmx.h Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
SDL_d3dmath.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_d3dmath.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_render.c Fixed bug 3029 - software renderer cuts off edges when rotate-blitting with a multiple of 90 degrees 2016-10-07 18:00:30 -07:00
SDL_sysrender.h SDL_RenderSetIntegerScale 2016-01-05 16:39:18 -05:00
SDL_yuv_mmx.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_yuv_sw_c.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_yuv_sw.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00