}
Sprite::Sprite(const Sprite& other) :
- data(other.data),
+ data(other.data),
frame(other.frame),
frameidx(other.frameidx),
animation_loops(other.animation_loops),
assert(action != 0);
update();
- context.draw_surface_part(action->surfaces[frameidx], source, size,
- pos - Vector(action->x_offset, action->y_offset),
+ context.draw_surface_part(action->surfaces[frameidx],
+ Rectf(source, Sizef(size)),
+ Rectf(pos - Vector(action->x_offset, action->y_offset),
+ Sizef(size)),
layer + action->z_order);
}