Fix the icon size in vertical split screen

This commit is contained in:
Benau 2021-02-06 08:59:08 +08:00
parent a97e65d068
commit d9d665f45f

View File

@ -375,7 +375,8 @@ void RaceGUI::renderPlayerView(const Camera *camera, float dt)
if (!isSpectatorCam) drawPlungerInFace(camera, dt);
if (viewport.getWidth() != (int)irr_driver->getActualScreenSize().Width)
if (viewport.getWidth() != (int)irr_driver->getActualScreenSize().Width &&
viewport.getHeight() != (int)irr_driver->getActualScreenSize().Height)
{
scaling *= float(viewport.getWidth()) / float(irr_driver->getActualScreenSize().Width); // scale race GUI along screen size
}