projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bb33b0
)
Fixed incorrect size in Sprite::draw_part()
author
Ingo Ruhnke
<grumbel@gmail.com>
Sun, 17 Aug 2014 01:44:24 +0000
(
03:44
+0200)
committer
Ingo 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
patch
|
blob
|
history
diff --git
a/src/sprite/sprite.cpp
b/src/sprite/sprite.cpp
index
41c732f
..
c508642
100644
(file)
--- a/
src/sprite/sprite.cpp
+++ b/
src/sprite/sprite.cpp
@@
-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);
}