stratagus-cvs
[Top][All Lists]
Advanced

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

[Stratagus-CVS] stratagus/src/video video.c


From: Nehal Mistry
Subject: [Stratagus-CVS] stratagus/src/video video.c
Date: Sun, 23 Nov 2003 14:22:48 -0500

CVSROOT:        /cvsroot/stratagus
Module name:    stratagus
Branch:         
Changes by:     Nehal Mistry <address@hidden>   03/11/23 14:22:48

Modified files:
        src/video      : video.c 

Log message:
        small cleanup

Patches:
Index: stratagus/src/video/video.c
diff -u stratagus/src/video/video.c:1.73 stratagus/src/video/video.c:1.74
--- stratagus/src/video/video.c:1.73    Sun Nov 23 14:11:03 2003
+++ stratagus/src/video/video.c Sun Nov 23 14:22:48 2003
@@ -26,7 +26,7 @@
 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //      02111-1307, USA.
 //
-//     $Id: video.c,v 1.73 2003/11/23 19:11:03 jsalmon3 Exp $
+//     $Id: video.c,v 1.74 2003/11/23 19:22:48 nehalmistry Exp $
 
 //@{
 
@@ -589,10 +589,6 @@
 global void DisplayPicture(const char* name)
 {
     Graphic* picture;
-#ifdef USE_SDL_SURFACE
-    SDL_Rect srect;
-    SDL_Rect drect;
-#endif
 
     picture = LoadGraphic(name);
     ResizeGraphic(picture, VideoWidth, VideoHeight);
@@ -601,15 +597,7 @@
 #endif
 
 #ifdef USE_SDL_SURFACE
-    srect.x = 0;
-    srect.y = 0;
-    srect.w = picture->Width;
-    srect.h = picture->Height;
-
-    drect.x = 0;
-    drect.y = 0;
-
-    SDL_BlitSurface(picture->Surface, &srect, TheScreen, &drect);
+    SDL_BlitSurface(picture->Surface, NULL, TheScreen, NULL);
 #else
     VideoLockScreen();
     VideoDrawSubClip(picture, 0, 0, picture->Width, picture->Height,




reply via email to

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