Fixed incorrect size in Sprite::draw_part()
authorIngo Ruhnke <grumbel@gmail.com>
Sun, 17 Aug 2014 01:44:24 +0000 (03:44 +0200)
committerIngo Ruhnke <grumbel@gmail.com>
Sun, 17 Aug 2014 01:44:24 +0000 (03:44 +0200)
This caused breaking blocks look weird

src/sprite/sprite.cpp

index 41c732f..c508642 100644 (file)
@@ -155,7 +155,7 @@ Sprite::draw_part(DrawingContext& context, const Vector& source,
   context.draw_surface_part(action->surfaces[frameidx],
                             Rectf(source, Sizef(size)),
                             Rectf(pos - Vector(action->x_offset, action->y_offset),
-                                  action->surfaces[frameidx]->get_size()),
+                                  Sizef(size)),
                             layer + action->z_order);
 }