This commit is contained in:
Nomagno 2024-05-12 20:12:56 +02:00 committed by GitHub
parent e2c245c420
commit 0f719d0cc5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -378,10 +378,11 @@ 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
scaling.X *= float(viewport.getWidth()) / float(irr_driver->getActualScreenSize().Width); // scale race GUI along screen size
scaling.Y *= float(viewport.getHeight()) / float(irr_driver->getActualScreenSize().Height); // scale race GUI along screen size
}
else
{