parent
e2c245c420
commit
0f719d0cc5
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user