stratagus-cvs
[Top][All Lists]
Advanced

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

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


From: Nehal Mistry
Subject: [Stratagus-CVS] stratagus/src/video cursor.c
Date: Mon, 17 Nov 2003 16:55:06 -0500

CVSROOT:        /cvsroot/stratagus
Module name:    stratagus
Branch:         
Changes by:     Nehal Mistry <address@hidden>   03/11/17 16:54:49

Modified files:
        src/video      : cursor.c 

Log message:
        remove cursor trails

Patches:
Index: stratagus/src/video/cursor.c
diff -u stratagus/src/video/cursor.c:1.78 stratagus/src/video/cursor.c:1.79
--- stratagus/src/video/cursor.c:1.78   Mon Nov 17 15:33:17 2003
+++ stratagus/src/video/cursor.c        Mon Nov 17 16:52:57 2003
@@ -26,7 +26,7 @@
 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //      02111-1307, USA.
 //
-//     $Id: cursor.c,v 1.78 2003/11/17 20:33:17 nehalmistry Exp $
+//     $Id: cursor.c,v 1.79 2003/11/17 21:52:57 nehalmistry Exp $
 
 //@{
 
@@ -303,7 +303,7 @@
 
     SDL_LockSurface(TheScreen);
     for (i = 0; i < h; ++i) {
-       memcpy(&((char*)TheScreen->pixels)[x + (h + i) * VideoWidth], buffer, 
w);
+       memcpy(&((char*)TheScreen->pixels)[x + (y + i) * VideoWidth], buffer, 
w);
     }
     SDL_UnlockSurface(TheScreen);
 }
@@ -314,7 +314,7 @@
 
     SDL_LockSurface(TheScreen);
     for (i = 0; i < h; ++i) {
-       memcpy(buffer, &((char*)TheScreen->pixels)[x + (h + i) * VideoWidth], 
w);
+       memcpy(buffer, &((char*)TheScreen->pixels)[x + (y + i) * VideoWidth], 
w);
     }
     SDL_UnlockSurface(TheScreen);
     // FIXME: todo
@@ -516,8 +516,6 @@
     SDL_Rect drect;
     SDL_Rect srect;
 
-    printf("call LOAD\n");
-
     srect.x = 0;
     srect.y = 0;
     srect.w = w;
@@ -535,7 +533,6 @@
     SDL_Rect srect;
     SDL_Rect drect;
 
-    printf("call SAVE\n");
     srect.x = x;
     srect.y = y;
     srect.w = w;
@@ -772,7 +769,7 @@
 #ifdef USE_SDL_SURFACE
     size = w * h;
     if (OldCursorSize < size) {
-       OldCursorImage = malloc(sizeof(SDL_Surface));
+       OldCursorImage = SDL_CreateRGBSurface(SDL_SWSURFACE, w, h, 32, RMASK, 
GMASK, BMASK, AMASK);
        OldCursorSize = size;
     }
 #else
@@ -1193,8 +1190,8 @@
     }
 
 #ifdef USE_SDL_SURFACE
-    OldCursorImage = SDL_CreateRGBSurface(SDL_SWSURFACE, 40, 40, 8, 0, 0, 0, 
0);
-    OldCursorRectangle = SDL_CreateRGBSurface(SDL_SWSURFACE, 40, 40, 8, 0, 0, 
0, 0);
+//    OldCursorImage = SDL_CreateRGBSurface(SDL_SWSURFACE, 40, 40, 8, 0, 0, 0, 
0);
+//    OldCursorRectangle = SDL_CreateRGBSurface(SDL_SWSURFACE, 40, 40, 8, 0, 
0, 0, 0);
 #else
     switch (VideoBpp) {
        case 8:
@@ -1246,7 +1243,7 @@
     int i;
 
     CLprintf(file, "\n;;; -----------------------------------------\n");
-    CLprintf(file, ";;; MODULE: cursors $Id: cursor.c,v 1.78 2003/11/17 
20:33:17 nehalmistry Exp $\n\n");
+    CLprintf(file, ";;; MODULE: cursors $Id: cursor.c,v 1.79 2003/11/17 
21:52:57 nehalmistry Exp $\n\n");
 
     for (i = 0; Cursors[i].OType; ++i) {
        CLprintf(file, "(define-cursor '%s '%s\n",




reply via email to

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