[Top][All Lists]
[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: |
Wed, 03 Dec 2003 12:52:42 -0500 |
CVSROOT: /cvsroot/stratagus
Module name: stratagus
Branch:
Changes by: Nehal Mistry <address@hidden> 03/12/03 12:52:42
Modified files:
src/video : cursor.c
Log message:
change void* to char*
Patches:
Index: stratagus/src/video/cursor.c
diff -u stratagus/src/video/cursor.c:1.85 stratagus/src/video/cursor.c:1.86
--- stratagus/src/video/cursor.c:1.85 Wed Dec 3 12:34:05 2003
+++ stratagus/src/video/cursor.c Wed Dec 3 12:52:41 2003
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: cursor.c,v 1.85 2003/12/03 17:34:05 nehalmistry Exp $
+// $Id: cursor.c,v 1.86 2003/12/03 17:52:41 nehalmistry Exp $
//@{
@@ -300,7 +300,7 @@
{
int i;
int bpp;
- void *sp;
+ char* sp;
bpp = TheScreen->format->BytesPerPixel;
@@ -309,10 +309,10 @@
sp = buffer;
memcpy(&((unsigned char*)TheScreen->pixels)
[x * bpp + y * TheScreen->pitch], sp, w * bpp);
- sp = sp + w * bpp;
+ sp += w * bpp;
memcpy(&((unsigned char*)TheScreen->pixels)
[x * bpp + (y + h) * TheScreen->pitch], sp, w * bpp);
- sp = sp + w * bpp;
+ sp += w * bpp;
for (i = 1; i < h; ++i) {
memcpy(&((unsigned char*)TheScreen->pixels)
[x * bpp + (y + i) * TheScreen->pitch], sp, bpp);
@@ -329,7 +329,7 @@
{
int i;
int bpp;
- void *dp;
+ char* dp;
bpp = TheScreen->format->BytesPerPixel;
@@ -338,10 +338,10 @@
dp = buffer;
memcpy(dp, &((unsigned char*)TheScreen->pixels)
[x * bpp + y * TheScreen->pitch], w * bpp);
- dp = dp + w * bpp;
+ dp += w * bpp;
memcpy(dp, &((unsigned char*)TheScreen->pixels)
[x * bpp + (y + h) * TheScreen->pitch], w * bpp);
- dp = dp + w * bpp;
+ dp += w * bpp;
for (i = 1; i < h; ++i) {
memcpy(dp, &((unsigned char*)TheScreen->pixels)
[x * bpp + (y + i) * TheScreen->pitch], bpp);
@@ -1281,7 +1281,7 @@
int i;
CLprintf(file, "\n;;; -----------------------------------------\n");
- CLprintf(file, ";;; MODULE: cursors $Id: cursor.c,v 1.85 2003/12/03
17:34:05 nehalmistry Exp $\n\n");
+ CLprintf(file, ";;; MODULE: cursors $Id: cursor.c,v 1.86 2003/12/03
17:52:41 nehalmistry Exp $\n\n");
for (i = 0; Cursors[i].OType; ++i) {
CLprintf(file, "(define-cursor '%s '%s\n",