[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src/ui interface.c
From: |
Nehal Mistry |
Subject: |
[Stratagus-CVS] stratagus/src/ui interface.c |
Date: |
Fri, 28 Nov 2003 17:06:55 -0500 |
CVSROOT: /cvsroot/stratagus
Module name: stratagus
Branch:
Changes by: Nehal Mistry <address@hidden> 03/11/28 17:06:55
Modified files:
src/ui : interface.c
Log message:
dont lock when clearing screen
Patches:
Index: stratagus/src/ui/interface.c
diff -u stratagus/src/ui/interface.c:1.143 stratagus/src/ui/interface.c:1.144
--- stratagus/src/ui/interface.c:1.143 Fri Nov 21 16:36:25 2003
+++ stratagus/src/ui/interface.c Fri Nov 28 17:06:55 2003
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: interface.c,v 1.143 2003/11/21 21:36:25 jsalmon3 Exp $
+// $Id: interface.c,v 1.144 2003/11/28 22:06:55 nehalmistry Exp $
//@{
@@ -504,9 +504,13 @@
EnableRedraw |= RedrawMap | RedrawAll;
MustRedraw |= RedrawEverything;
SetStatusLine("Big map enabled");
+#ifdef USE_SDL_SURFACE
+ VideoClearScreen();
+#else
VideoLockScreen();
VideoClearScreen();
VideoUnlockScreen();
+#endif
} else {
TheUI.MapArea.X = mapx;
TheUI.MapArea.Y = mapy;
@@ -518,9 +522,13 @@
EnableRedraw = RedrawEverything;
MustRedraw = RedrawEverything;
SetStatusLine("Returning to old map");
+#ifdef USE_SDL_SURFACE
+ VideoClearScreen();
+#else
VideoLockScreen();
VideoClearScreen();
VideoUnlockScreen();
+#endif
}
}