Enable out of bounds pasting in GameView

This commit is contained in:
Tamás Bálint Misius 2023-06-02 08:10:57 +02:00
parent a205612802
commit 28a701a756
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

@ -1181,7 +1181,7 @@ void GameView::OnMouseDown(int x, int y, unsigned button)
Vec2<int> GameView::PlaceSavePos() const
{
return c->NormaliseBlockCoord(selectPoint2 + placeSaveOffset * CELL + Vec2(1, 1) * CELL / 2).Clamp(RectBetween(Vec2<int>::Zero, RES - placeSaveThumb->Size()));
return c->NormaliseBlockCoord(selectPoint2 + placeSaveOffset * CELL + Vec2(1, 1) * CELL / 2);
}
void GameView::OnMouseUp(int x, int y, unsigned button)