mirror of
https://github.com/yawut/SDL.git
synced 2026-06-03 06:35:10 -05:00
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. |
||
|---|---|---|
| .. | ||
| atomic | ||
| audio | ||
| core | ||
| cpuinfo | ||
| events | ||
| file | ||
| haptic | ||
| joystick | ||
| libm | ||
| loadso | ||
| main | ||
| power | ||
| render | ||
| stdlib | ||
| thread | ||
| timer | ||
| video | ||
| SDL_assert_c.h | ||
| SDL_assert.c | ||
| SDL_error_c.h | ||
| SDL_error.c | ||
| SDL_fatal.c | ||
| SDL_fatal.h | ||
| SDL_hints_c.h | ||
| SDL_hints.c | ||
| SDL_log.c | ||
| SDL.c | ||