Author: grumbel
Date: 2007-08-12 01:43:33 +0200 (Sun, 12 Aug 2007)
New Revision: 2847

Modified:
   branches/pingus_sdl/src/sprite.cpp
Log:
- fixed frame_size calculation

Modified: branches/pingus_sdl/src/sprite.cpp
===================================================================
--- branches/pingus_sdl/src/sprite.cpp  2007-08-11 23:41:40 UTC (rev 2846)
+++ branches/pingus_sdl/src/sprite.cpp  2007-08-11 23:43:33 UTC (rev 2847)
@@ -77,10 +77,8 @@
 
     array = desc.array;
 
-    frame_size.width  = (desc.frame_size.width  == -1) ? surface->w : 
desc.frame_size.width;
-    frame_size.width /= array.width;
-    frame_size.height = (desc.frame_size.height == -1) ? surface->h : 
desc.frame_size.height;
-    frame_size.height /= array.height;
+    frame_size.width  = (desc.frame_size.width  == -1) ? 
surface->w/array.width  : desc.frame_size.width;
+    frame_size.height = (desc.frame_size.height == -1) ? 
surface->h/array.height : desc.frame_size.height;
 
     frame_delay  = desc.speed;
 



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

Reply via email to