mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-16 13:24:02 +02:00
Make zoom Window switch sides to avoid getting in the way
This commit is contained in:
@@ -215,7 +215,13 @@ void GameController::SetZoomPosition(ui::Point position)
|
|||||||
zoomPosition.X = XRES-gameModel->GetZoomSize();
|
zoomPosition.X = XRES-gameModel->GetZoomSize();
|
||||||
if(zoomPosition.Y >= YRES-gameModel->GetZoomSize())
|
if(zoomPosition.Y >= YRES-gameModel->GetZoomSize())
|
||||||
zoomPosition.Y = YRES-gameModel->GetZoomSize();
|
zoomPosition.Y = YRES-gameModel->GetZoomSize();
|
||||||
|
|
||||||
|
ui::Point zoomWindowPosition = ui::Point(0, 0);
|
||||||
|
if(position.X < XRES/2)
|
||||||
|
zoomWindowPosition.X = XRES-(gameModel->GetZoomSize()*gameModel->GetZoomFactor());
|
||||||
|
|
||||||
gameModel->SetZoomPosition(zoomPosition);
|
gameModel->SetZoomPosition(zoomPosition);
|
||||||
|
gameModel->SetZoomWindowPosition(zoomWindowPosition);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GameController::SetPaused(bool pauseState)
|
void GameController::SetPaused(bool pauseState)
|
||||||
|
Reference in New Issue
Block a user