Skip to content

Commit 0369e10

Browse files
committed
ggj2023 bug fix! in TileLayer
1 parent b06061d commit 0369e10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/graphics/TileLayer.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ inline namespace v1 {
213213
Vector2f position = bounds.getPosition();
214214
position += sheet.tileset.getOffset();
215215

216-
RectF box = RectF::fromPositionSize(position, sheet.tileset.getTileSize());
216+
RectF box = RectF::fromPositionSize(position, bounds.getSize());
217217

218218
// texture coords
219219

0 commit comments

Comments
 (0)