Make zoom Window switch sides to avoid getting in the way
This commit is contained in:
parent
b5728a9e3e
commit
28d4aecb6c
@ -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