Skip to content

Commit 80bf240

Browse files
committed
fix coordinates when placing stamps
1 parent d08621a commit 80bf240

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gui/game/GameView.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2054,8 +2054,8 @@ void GameView::OnDraw()
20542054
{
20552055
if(placeSaveThumb && selectPoint2.X!=-1)
20562056
{
2057-
int thumbX = selectPoint2.X - (placeSaveThumb->Width/2);
2058-
int thumbY = selectPoint2.Y - (placeSaveThumb->Height/2);
2057+
int thumbX = selectPoint2.X - (placeSaveThumb->Width/2) + CELL/2;
2058+
int thumbY = selectPoint2.Y - (placeSaveThumb->Height/2) + CELL/2;
20592059

20602060
ui::Point thumbPos = c->NormaliseBlockCoord(ui::Point(thumbX, thumbY));
20612061

0 commit comments

Comments
 (0)