sdl2_frt/src
Sam Lantinga d23d9c88e5 Fixed bug 2421 - SDL_RenderCopyEx off by one when rotating by 90 and -90
chasesan

When using SDL_RenderCopyEx, I get a problem on some platforms where the output is offset by +/-1 on other platforms and not on others. I tried it with a center of both 0,0 (and offsetting by width/height) and NULL (for centered).

The rotation involved is 90, and/or -90 rotation. The rotation was a constant, no arithmetic was involved when inputting it into SDL_RenderCopyEx.

This occurred with 32x32, 24x24, and 16x16 texture sizes. I apologize that I don't have more precise information, as I received the information as a bug report myself. But I have tracked the problem down to here.

My program requires pixel perfect alignment on several different platforms, so this is something of a showstopper for me.

--

Sylvain

It appears the RenderCopyEx is done as expected,
this is the red rectangle which is not correctly positionned !

So, here's patch with a 0.5 float increment, like for opengles2, for DrawLines, and also Draw Points.
2014-07-07 23:26:34 -07:00
..
atomic Fixed bug 2618 - incomplete pthread-based lock support should be removed 2014-07-07 21:27:42 -07:00
audio Fixed compiler warning on Mac OS X 2014-07-07 10:38:10 -07:00
core Call dbus_shutdown to make valgrind happy. 2014-07-06 22:15:31 +01:00
cpuinfo Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
dynapi Merged Ryan's SDL-gui-backend branch. 2014-06-25 17:06:12 -04:00
events Fixed compiler warnings on iOS 2014-07-07 11:00:25 -07:00
file Fixed bug 2631 - Mac: minor code cleanup 2014-07-07 12:48:25 -07:00
filesystem Ooops, code that resists erasure, I've seen that in a movie. 2014-06-20 11:01:05 -03:00
haptic Fixed bug 2631 - Mac: minor code cleanup 2014-07-07 12:48:25 -07:00
joystick Hopefully fixed Cygwin build 2014-07-07 13:21:54 -07:00
libm Fixed building on command line Mac OS X 2014-06-07 20:43:12 -07:00
loadso Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
main Fix another NaCl warning 2014-06-20 11:50:31 -03:00
power Added annotations to help code analysis tools 2014-06-04 10:56:56 -07:00
render Fixed bug 2421 - SDL_RenderCopyEx off by one when rotating by 90 and -90 2014-07-07 23:26:34 -07:00
stdlib Fixed bug 2596 - SDL_SetError fails on on NULL on systems with vsnprintf 2014-06-21 11:52:53 -07:00
test Fix option for forced run of disabled tests in test harness 2014-07-06 20:41:39 -07:00
thread Fixed bug 2556 - add compilation flag -Wshadow 2014-06-25 00:43:10 -07:00
timer Fixed compiler warnings on iOS 2014-07-07 11:00:25 -07:00
video Fixed bug 2628 - invalidate surface->map in SDL_SurfacePalette() 2014-07-07 21:21:05 -07:00
SDL_assert_c.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_assert.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_error_c.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_error.c Added annotations to help code analysis tools 2014-06-04 10:56:56 -07:00
SDL_hints.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_internal.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_log.c Chrome's Native Client backend implementation 2014-06-06 15:45:59 -03:00
SDL.c Added NaCl to SDL_GetPlatform() 2014-06-21 11:48:12 -07:00