stratagus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Stratagus-CVS] stratagus/src/video sprite.c


From: Nehal Mistry
Subject: [Stratagus-CVS] stratagus/src/video sprite.c
Date: Mon, 17 Nov 2003 15:39:11 -0500

CVSROOT:        /cvsroot/stratagus
Module name:    stratagus
Branch:         
Changes by:     Nehal Mistry <address@hidden>   03/11/17 15:39:10

Modified files:
        src/video      : sprite.c 

Log message:
        fix VideoDrawClip clipping

Patches:
Index: stratagus/src/video/sprite.c
diff -u stratagus/src/video/sprite.c:1.39 stratagus/src/video/sprite.c:1.40
--- stratagus/src/video/sprite.c:1.39   Mon Nov 17 14:14:48 2003
+++ stratagus/src/video/sprite.c        Mon Nov 17 15:39:10 2003
@@ -27,7 +27,7 @@
 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //      02111-1307, USA.
 //
-//     $Id: sprite.c,v 1.39 2003/11/17 19:14:48 nehalmistry Exp $
+//     $Id: sprite.c,v 1.40 2003/11/17 20:39:10 nehalmistry Exp $
 
 //@{
 
@@ -480,11 +480,12 @@
     srect.w = sprite->Width;
     srect.h = sprite->Height;
 
+    // FIXME: is this right?
     if (x + srect.w > ClipX2) {
-       drect.w = ClipX2 - x;
+       srect.w = ClipX2 - x;
     }
     if (y + srect.h > ClipY2) {
-       drect.h = ClipY2 - y;
+       srect.h = ClipY2 - y;
     }
     if (x < ClipX1) {
        x = ClipX1;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]