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: address@hidden
Subject: [Stratagus-CVS] stratagus/src/game intro.c
Date: 10 Jan 2004 05:55:39 +1100

CVSROOT:        /home/strat
Module name:    stratagus
Changes by:      <address@hidden>       04/01/10 05:55:39

Modified files:
        src/game       : intro.c 

Log message:
        Clean up sdl surface

Patches:
Index: stratagus/src/game/intro.c
diff -u stratagus/src/game/intro.c:1.119 stratagus/src/game/intro.c:1.120
--- stratagus/src/game/intro.c:1.119    Sat Jan  3 11:27:32 2004
+++ stratagus/src/game/intro.c  Sat Jan 10 05:55:38 2004
@@ -26,7 +26,7 @@
 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //      02111-1307, USA.
 //
-//      $Id: intro.c,v 1.119 2004/01/03 00:27:32 jsalmon3 Exp $
+//      $Id: intro.c,v 1.120 2004/01/09 18:55:38 jsalmon3 Exp $
 
 //@{
 
@@ -717,13 +717,12 @@
 
 #ifdef USE_SDL_SURFACE
        VideoClearScreen();
-       DestroyCursorBackground();
 #else
        VideoLockScreen();
        VideoClearScreen();
        VideoUnlockScreen();
-       DestroyCursorBackground();
 #endif
+       DestroyCursorBackground();
 
        VideoSyncSpeed = old_video_sync;
        SetVideoSync();
@@ -824,20 +823,16 @@
        while (IntroNoEvent && i < max) {
 #ifdef USE_SDL_SURFACE
                VideoClearScreen();
-               VideoDrawSubClipFaded(background, 0, 0,
-                       background->Width, background->Height,
-                       (VideoWidth - background->Width) / 2,
-                       (VideoHeight - background->Height) / 2,
-                       255 * i / max);
-               PictureDrawText(chapter, lines);
 #else
                VideoLockScreen();
+#endif
                VideoDrawSubClipFaded(background, 0, 0,
                        background->Width, background->Height,
                        (VideoWidth - background->Width) / 2,
                        (VideoHeight - background->Height) / 2,
                        255 * i / max);
                PictureDrawText(chapter, lines);
+#ifndef USE_SDL_SURFACE
                VideoUnlockScreen();
 #endif
 
@@ -855,19 +850,15 @@
        j = 0;
        max = chapter->Data.Picture.DisplayTime;
        while (IntroNoEvent && j < max) {
-#ifdef USE_SDL_SURFACE
-               VideoDrawSubClip(background, 0, 0,
-                       background->Width, background->Height,
-                       (VideoWidth - background->Width) / 2,
-                       (VideoHeight - background->Height) / 2);
-               PictureDrawText(chapter, lines);
-#else
+#ifndef USE_SDL_SURFACE
                VideoLockScreen();
+#endif
                VideoDrawSubClip(background, 0, 0,
                        background->Width, background->Height,
                        (VideoWidth - background->Width) / 2,
                        (VideoHeight - background->Height) / 2);
                PictureDrawText(chapter, lines);
+#ifndef USE_SDL_SURFACE
                VideoUnlockScreen();
 #endif
 
@@ -885,20 +876,16 @@
        while (i >= 0) {
 #ifdef USE_SDL_SURFACE
                VideoClearScreen();
-               VideoDrawSubClipFaded(background, 0, 0,
-                       background->Width, background->Height,
-                       (VideoWidth - background->Width) / 2,
-                       (VideoHeight - background->Height) / 2,
-                       255 * i / max);
-               PictureDrawText(chapter, lines);
 #else
                VideoLockScreen();
+#endif
                VideoDrawSubClipFaded(background, 0, 0,
                        background->Width, background->Height,
                        (VideoWidth - background->Width) / 2,
                        (VideoHeight - background->Height) / 2,
                        255 * i / max);
                PictureDrawText(chapter, lines);
+#ifndef USE_SDL_SURFACE
                VideoUnlockScreen();
 #endif
 




reply via email to

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