pingus-cvs
[Top][All Lists]
Advanced

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

[Pingus-CVS] CVS: Games/Pingus/src display_graphic_context.cxx,1.1,1.2


From: grumbel
Subject: [Pingus-CVS] CVS: Games/Pingus/src display_graphic_context.cxx,1.1,1.2
Date: 4 Sep 2002 21:02:42 -0000

Update of /usr/local/cvsroot/Games/Pingus/src
In directory dark:/tmp/cvs-serv31885

Modified Files:
        display_graphic_context.cxx 
Log Message:
sprites are now animated again

Index: display_graphic_context.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/display_graphic_context.cxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- display_graphic_context.cxx 4 Sep 2002 17:49:48 -0000       1.1
+++ display_graphic_context.cxx 4 Sep 2002 21:02:40 -0000       1.2
@@ -151,10 +151,8 @@
 void 
 DisplayGraphicContext::draw (Sprite& sprite, const CL_Vector& pos)
 {
-  CL_Surface sur (sprite.get_surface ());
-  draw (sur, 
-       (int) pos.x + sprite.get_x_align (),
-       (int) pos.y + sprite.get_y_align ());
+  CL_Vector tmp_pos = pos;
+  sprite.put_screen (tmp_pos + offset + center);
 }
 
 void 





reply via email to

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