mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-01 06:00:15 +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();
|
||||
if(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->SetZoomWindowPosition(zoomWindowPosition);
|
||||
}
|
||||
|
||||
void GameController::SetPaused(bool pauseState)
|
||||
|
Reference in New Issue
Block a user