SDL/src
Sam Lantinga 12c31c0abf Marcus von Appen fixed bug 1535: SDL_UpdateWindowRects() SIGSEGV on X11 with out-of-bound rects
Using SDL_UpdateWindowRects () with SDL_Rect instances, that do not clip
to the bounds of the SDL_Window, causes a BadValue error on X11, if shared
memory is enabled:

X Error of failed request:  BadValue (integer parameter out of range for
operation)
  Major opcode of failed request:  142 (MIT-SHM)
  Minor opcode of failed request:  3 (X_ShmPutImage)
  Value in failed request:  0x5
  Serial number of failed request:  67
  Current serial number in output stream:  70

Attached is a test program to recreate the behaviour along with a simple
patch for SDL_x11framebuffer.c, which reduces the rect area to the window
bounds.

I am not sure, if XPutImage() is more robust here, so I applied it to the
non-shared memory version, too.
2012-07-05 07:26:18 -04:00
..
atomic Make sure that we use consistent configuration options on platforms like Windows so that command line builds and IDE builds have ABI compatibility. 2012-01-14 13:21:19 -05:00
audio Replaced some assert macros with SDL_assert. 2012-02-07 02:11:15 -05:00
core Patrick Baggett implemented relative mouse mode on Win32 2012-07-03 23:52:02 -04:00
cpuinfo Happy New Year! 2011-12-31 09:28:07 -05:00
events Make mouse relative mode save the original co-ordinates to restore them 2012-02-04 00:13:21 +13:00
file Happy New Year! 2011-12-31 09:28:07 -05:00
haptic Check return value, not unsigned "supported" flags 2011-12-31 13:28:07 -05:00
joystick Fix from 1.2 branch: ignore bogus Linux evdev joystick axes. 2012-06-03 05:05:34 -04:00
libm Happy New Year! 2011-12-31 09:28:07 -05:00
loadso Happy New Year! 2011-12-31 09:28:07 -05:00
main Added the correct version.rc to the Visual Studio build. 2012-01-21 12:10:14 -05:00
power Happy New Year! 2011-12-31 09:28:07 -05:00
render Fixed orientation and color when rendering to texture 2012-06-22 11:38:49 -04:00
stdlib Replaced some assert macros with SDL_assert. 2012-02-07 02:11:15 -05:00
thread Fixed bug 1426 - SDL_SemWaitTimeout returns -1 and sets error instead of SDL_MUTEX_TIMEDOUT on time out 2012-02-20 23:51:53 -05:00
timer Happy New Year! 2011-12-31 09:28:07 -05:00
video Marcus von Appen fixed bug 1535: SDL_UpdateWindowRects() SIGSEGV on X11 with out-of-bound rects 2012-07-05 07:26:18 -04:00
SDL_assert_c.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_assert.c SDL_ExitProcess() was ignoring exit code parameter. 2012-04-09 23:55:43 -04:00
SDL_error_c.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_error.c Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_fatal.c Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_fatal.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_hints_c.h Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_hints.c Happy New Year! 2011-12-31 09:28:07 -05:00
SDL_log.c Happy New Year! 2011-12-31 09:28:07 -05:00
SDL.c Happy New Year! 2011-12-31 09:28:07 -05:00