Fix elevator window position

This commit is contained in:
Alexander Batalov 2022-05-21 02:43:06 +03:00
parent ac3f8dacaa
commit f556b7ba2d

View File

@ -534,9 +534,11 @@ int elevatorWindowInit(int elevator)
return -1; return -1;
} }
int elevatorWindowX = (screenGetWidth() - gElevatorBackgroundFrmWidth) / 2;
int elevatorWindowY = (screenGetHeight() - 100 - 1 - gElevatorBackgroundFrmHeight) / 2;
gElevatorWindow = windowCreate( gElevatorWindow = windowCreate(
(640 - gElevatorBackgroundFrmWidth) / 2, elevatorWindowX,
(379 - gElevatorBackgroundFrmHeight) / 2, elevatorWindowY,
gElevatorBackgroundFrmWidth, gElevatorBackgroundFrmWidth,
gElevatorBackgroundFrmHeight, gElevatorBackgroundFrmHeight,
256, 256,