Author: nehalmistry
Date: 2007-08-15 20:38:21 +0200 (Wed, 15 Aug 2007)
New Revision: 2934

Modified:
   branches/pingus_sdl/src/worldobjs/surface_background.cpp
Log:
fix bg color fill with stretched background

Modified: branches/pingus_sdl/src/worldobjs/surface_background.cpp
===================================================================
--- branches/pingus_sdl/src/worldobjs/surface_background.cpp    2007-08-15 
16:59:58 UTC (rev 2933)
+++ branches/pingus_sdl/src/worldobjs/surface_background.cpp    2007-08-15 
18:38:21 UTC (rev 2934)
@@ -63,7 +63,6 @@
   Timer timer("Background creation");
 
   bg_surface = Resource::load_sprite(desc);
-  bg_surface.fill(color);
 
   // Scaling Code
   if (stretch_x && stretch_y)
@@ -95,6 +94,8 @@
         }
     }
 
+  bg_surface.fill(color);
+
   timer.stop();
 }
 



_______________________________________________
pingus-cvs mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/pingus-cvs

Reply via email to