Just use flipscreen(), instead of giving true as update argument. This update thing...
authorRicardo Cruz <rick2@aeiou.pt>
Sat, 1 May 2004 11:25:45 +0000 (11:25 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Sat, 1 May 2004 11:25:45 +0000 (11:25 +0000)
Anyway, still doesn't work.

SVN-Revision: 888

src/screen.cpp

index 18e8489..df1b53f 100644 (file)
@@ -122,11 +122,12 @@ else
 
   while(alpha >= 0 && alpha < 256)
     {
+    surface->draw(0,0,(int)alpha);
+    flipscreen();
+
     old_time = cur_time;
     cur_time = SDL_GetTicks();
 
-    surface->draw(0,0,(int)alpha, true);
-
     /* Calculate the next alpha value */
     float calc = (float) ((cur_time - old_time) / seconds);
     if(fade_out)