[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src/clone clone.c
From: |
Nehal Mistry |
Subject: |
[Stratagus-CVS] stratagus/src/clone clone.c |
Date: |
Mon, 17 Nov 2003 18:45:21 -0500 |
CVSROOT: /cvsroot/stratagus
Module name: stratagus
Branch:
Changes by: Nehal Mistry <address@hidden> 03/11/17 18:45:20
Modified files:
src/clone : clone.c
Log message:
cleanup file for USE_SDL_SURFACE
Patches:
Index: stratagus/src/clone/clone.c
diff -u stratagus/src/clone/clone.c:1.226 stratagus/src/clone/clone.c:1.227
--- stratagus/src/clone/clone.c:1.226 Mon Nov 17 14:14:28 2003
+++ stratagus/src/clone/clone.c Mon Nov 17 18:45:20 2003
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: clone.c,v 1.226 2003/11/17 19:14:28 nehalmistry Exp $
+// $Id: clone.c,v 1.227 2003/11/17 23:45:20 nehalmistry Exp $
//@{
@@ -977,9 +977,13 @@
#endif
#endif
+#ifdef USE_SDL_SURFACE
+ VideoClearScreen();
+#else
VideoLockScreen();
VideoClearScreen();
VideoUnlockScreen();
+#endif
Invalidate();
RealizeVideoMemory();
}
@@ -1000,7 +1004,9 @@
va_end(va);
if (VideoDepth && IsFontLoaded(GameFont)) {
+#ifndef USE_SDL_SURFACE
VideoLockScreen();
+#endif
for (s = temp; *s; ++s) { // Remove non printable chars
if (*s < 32) {
*s = ' ';
@@ -1014,7 +1020,9 @@
VideoFillRectangle(ColorBlack, 5, VideoHeight - 18, VideoWidth - 10,
18);
#endif
VideoDrawTextCentered(VideoWidth / 2, VideoHeight - 16, GameFont, temp);
+#ifndef USE_SDL_SURFACE
VideoUnlockScreen();
+#endif
InvalidateArea(5, VideoHeight - 18, VideoWidth - 10, 18);
RealizeVideoMemory();
} else {
@@ -1080,10 +1088,15 @@
//
// Clear screen
//
+#ifdef USE_SDL_SURFACE
+ VideoClearScreen();
+ Invalidate();
+#else
VideoLockScreen();
VideoClearScreen();
VideoUnlockScreen();
Invalidate();
+#endif
RealizeVideoMemory();
//