[SDL] Want to help with SDL 1.3?
Donny Viszneki
donny.viszneki at gmail.com
Sun Jan 4 21:48:06 PST 2009
On Sun, Jan 4, 2009 at 2:36 PM, Sam Lantinga <slouken at devolution.com> wrote:
> It's hard for me to tell, but it looks like lines intersecting the upper
> corners of the rect are being completely clipped out. Can you take a quick
> look?
I believe the patch below fixes the issue, but when I built with
--disable-video-x11-xinput my mouse seemed to stop working, so I
didn't test as thoroughly as I might like to. Any advice about what to
do for that? Should I install some other Xorg header package?
Index: src/video/SDL_rect.c
===================================================================
--- src/video/SDL_rect.c (revision 4356)
+++ src/video/SDL_rect.c (working copy)
@@ -150,7 +150,7 @@
/* Check to see if entire line is to one side of rect */
if ((x1 < rectx1 && x2 < rectx1) || (x1 > rectx2 && x2 > rectx2) ||
- (y1 < recty1 && y2 < recty2) || (y1 > recty2 && y2 > recty2)) {
+ (y1 < recty1 && y2 < recty1) || (y1 > recty2 && y2 > recty2)) {
return SDL_FALSE;
}
I hereby grant Sam Lantinga an irrevocable non-exclusive distribution
license to this patch to do with as he wishes.
--
http://codebad.com/
More information about the SDL
mailing list