[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src/ui menus.c
From: |
Nehal Mistry |
Subject: |
[Stratagus-CVS] stratagus/src/ui menus.c |
Date: |
Mon, 17 Nov 2003 18:39:56 -0500 |
CVSROOT: /cvsroot/stratagus
Module name: stratagus
Branch:
Changes by: Nehal Mistry <address@hidden> 03/11/17 18:39:55
Modified files:
src/ui : menus.c
Log message:
even more menu fixes for USE_SDL_SURFACE
Patches:
Index: stratagus/src/ui/menus.c
diff -u stratagus/src/ui/menus.c:1.590 stratagus/src/ui/menus.c:1.591
--- stratagus/src/ui/menus.c:1.590 Mon Nov 17 18:24:05 2003
+++ stratagus/src/ui/menus.c Mon Nov 17 18:39:54 2003
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: menus.c,v 1.590 2003/11/17 23:24:05 nehalmistry Exp $
+// $Id: menus.c,v 1.591 2003/11/17 23:39:54 nehalmistry Exp $
//@{
@@ -2892,6 +2892,8 @@
#ifdef USE_SDL_SURFACE
MenusSetBackground();
+ VideoClearScreen();
+ Invalidate();
#else
VideoLockScreen();
MenusSetBackground();
@@ -5006,9 +5008,13 @@
TheMap.Info->MapWidth = atoi(width);
TheMap.Info->MapHeight = atoi(height);
+#ifdef USE_SDL_SURFACE
+ VideoClearScreen();
+#else
VideoLockScreen();
VideoClearScreen();
VideoUnlockScreen();
+#endif
*CurrentMapPath = '\0';
@@ -5121,9 +5127,13 @@
return;
}
+#ifdef USE_SDL_SURFACE
+ VideoClearScreen();
+#else
VideoLockScreen();
VideoClearScreen();
VideoUnlockScreen();
+#endif
if (ScenSelectPath[0]) {
s = ScenSelectPath + strlen(ScenSelectPath);
@@ -5564,9 +5574,13 @@
return;
}
+#ifdef USE_SDL_SURFACE
+ VideoClearScreen();
+#else
VideoLockScreen();
VideoClearScreen();
VideoUnlockScreen();
+#endif
if (ScenSelectPath[0]) {
s = ScenSelectPath + strlen(ScenSelectPath);
@@ -6507,6 +6521,7 @@
#ifdef USE_SDL_SURFACE
VideoClearScreen();
MenusSetBackground();
+ Invalidate();
#else
VideoLockScreen();
VideoClearScreen();