fix bug with placing zoom window while saving a stamp
This commit is contained in:
parent
c7bb60559e
commit
2fc1dcbe29
@ -1059,6 +1059,8 @@ void GameView::OnMouseDown(int x, int y, unsigned button)
|
||||
{
|
||||
if (altBehaviour && !shiftBehaviour && !ctrlBehaviour)
|
||||
button = BUTTON_MIDDLE;
|
||||
if (!(zoomEnabled && !zoomCursorFixed))
|
||||
{
|
||||
if (selectMode != SelectNone)
|
||||
{
|
||||
if (button == BUTTON_LEFT)
|
||||
@ -1068,7 +1070,7 @@ void GameView::OnMouseDown(int x, int y, unsigned button)
|
||||
}
|
||||
return;
|
||||
}
|
||||
if(currentMouse.X >= 0 && currentMouse.X < XRES && currentMouse.Y >= 0 && currentMouse.Y < YRES && !(zoomEnabled && !zoomCursorFixed))
|
||||
if (currentMouse.X >= 0 && currentMouse.X < XRES && currentMouse.Y >= 0 && currentMouse.Y < YRES)
|
||||
{
|
||||
if (button == BUTTON_LEFT)
|
||||
toolIndex = 0;
|
||||
@ -1089,6 +1091,7 @@ void GameView::OnMouseDown(int x, int y, unsigned button)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void GameView::OnMouseUp(int x, int y, unsigned button)
|
||||
{
|
||||
|
Reference in New Issue
Block a user