stratagus-cvs
[Top][All Lists]
Advanced

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

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


From: address@hidden
Subject: [Stratagus-CVS] stratagus/src/video graphic.c
Date: 10 Jan 2004 12:10:18 +1100

CVSROOT:        /home/strat
Module name:    stratagus
Changes by:      <address@hidden>       04/01/10 12:10:18

Modified files:
        src/video      : graphic.c 

Log message:
        Fixed warning

Patches:
Index: stratagus/src/video/graphic.c
diff -u stratagus/src/video/graphic.c:1.58 stratagus/src/video/graphic.c:1.59
--- stratagus/src/video/graphic.c:1.58  Sat Jan 10 09:18:58 2004
+++ stratagus/src/video/graphic.c       Sat Jan 10 12:10:17 2004
@@ -26,7 +26,7 @@
 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //      02111-1307, USA.
 //
-//      $Id: graphic.c,v 1.58 2004/01/09 22:18:58 jsalmon3 Exp $
+//      $Id: graphic.c,v 1.59 2004/01/10 01:10:17 jsalmon3 Exp $
 
 //@{
 
@@ -439,8 +439,12 @@
 local void FreeGraphic8(Graphic* graphic)
 {
 #ifdef DEBUG
+#ifdef USE_SDL_SURFACE
        AllocatedGraphicMemory -=
                graphic->Width * graphic->Height * 
graphic->Surface->format->BytesPerPixel;
+#else
+       AllocatedGraphicMemory -= graphic->Size;
+#endif
        AllocatedGraphicMemory -= sizeof(Graphic);
 #endif
 




reply via email to

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