stratagus-cvs
[Top][All Lists]
Advanced

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

[Stratagus-CVS] stratagus/src/game intro.c


From: Nehal Mistry
Subject: [Stratagus-CVS] stratagus/src/game intro.c
Date: Mon, 17 Nov 2003 18:09:17 -0500

CVSROOT:        /cvsroot/stratagus
Module name:    stratagus
Branch:         
Changes by:     Nehal Mistry <address@hidden>   03/11/17 18:09:16

Modified files:
        src/game       : intro.c 

Log message:
        can now see intro with USE_SDL_SURFACE

Patches:
Index: stratagus/src/game/intro.c
diff -u stratagus/src/game/intro.c:1.105 stratagus/src/game/intro.c:1.106
--- stratagus/src/game/intro.c:1.105    Mon Nov 17 14:14:31 2003
+++ stratagus/src/game/intro.c  Mon Nov 17 18:09:15 2003
@@ -26,7 +26,7 @@
 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //      02111-1307, USA.
 //
-//     $Id: intro.c,v 1.105 2003/11/17 19:14:31 nehalmistry Exp $
+//     $Id: intro.c,v 1.106 2003/11/17 23:09:15 nehalmistry Exp $
 
 //@{
 
@@ -401,9 +401,13 @@
     GameCursor = TheUI.Point.Cursor;
     DestroyCursorBackground();
 
+#ifdef USE_SDL_SURFACE
+    VideoClearScreen();
+#else
     VideoLockScreen();
     VideoClearScreen();
     VideoUnlockScreen();
+#endif
 
     old_video_sync = VideoSyncSpeed;
     VideoSyncSpeed = 100;
@@ -487,7 +491,9 @@
            }
        }
 #endif
+#ifndef USE_SDL_SURFACE
        VideoLockScreen();
+#endif
        HideAnyCursor();
        //
        //      Draw background
@@ -529,7 +535,9 @@
        DrawContinueButton();
        DrawAnyCursor();
 
+#ifndef USE_SDL_SURFACE
        VideoUnlockScreen();
+#endif
 
        if (!line && !c) {
            Invalidate();
@@ -564,9 +572,13 @@
     free(text);
     VideoFree(background);
 
+#ifdef USE_SDL_SURFACE
+    VideoClearScreen();
+#else
     VideoLockScreen();
     VideoClearScreen();
     VideoUnlockScreen();
+#endif
 
     VideoSyncSpeed = old_video_sync;
     SetVideoSync();
@@ -595,9 +607,13 @@
     TextLines* scrolling_credits;
     int old_video_sync;
 
+#ifdef USE_SDL_SURFACE
+    VideoClearScreen();
+#else
     VideoLockScreen();
     VideoClearScreen();
     VideoUnlockScreen();
+#endif
 
     old_video_sync = VideoSyncSpeed;
     VideoSyncSpeed = 100;
@@ -642,7 +658,9 @@
     scrolling = 1;
     while (1) {
 
+#ifndef USE_SDL_SURFACE
        VideoLockScreen();
+#endif
        HideAnyCursor();
 
        //
@@ -665,7 +683,9 @@
        DrawContinueButton();
        DrawAnyCursor();
 
+#ifndef USE_SDL_SURFACE
        VideoUnlockScreen();
+#endif
 
        // FIXME: update only the changed area!!!!
 




reply via email to

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