mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-07-31 05:30:23 +02:00
fix coordinates when placing stamps
This commit is contained in:
@@ -2054,8 +2054,8 @@ void GameView::OnDraw()
|
||||
{
|
||||
if(placeSaveThumb && selectPoint2.X!=-1)
|
||||
{
|
||||
int thumbX = selectPoint2.X - (placeSaveThumb->Width/2);
|
||||
int thumbY = selectPoint2.Y - (placeSaveThumb->Height/2);
|
||||
int thumbX = selectPoint2.X - (placeSaveThumb->Width/2) + CELL/2;
|
||||
int thumbY = selectPoint2.Y - (placeSaveThumb->Height/2) + CELL/2;
|
||||
|
||||
ui::Point thumbPos = c->NormaliseBlockCoord(ui::Point(thumbX, thumbY));
|
||||
|
||||
|
Reference in New Issue
Block a user