Population and many small classes done, mouse AUX buttons, Frontend, Hud, fixes

This commit is contained in:
eray orçunus 2020-09-29 22:53:12 +03:00
parent 1fa852f118
commit f71953077d
35 changed files with 1428 additions and 1134 deletions

View file

@ -69,3 +69,14 @@ CDraw::SetFOV(float fov)
#endif
ms_fFOV = fov;
}
#ifdef ASPECT_RATIO_SCALE
float
ScaleAndCenterX(float x)
{
if (SCREEN_WIDTH == DEFAULT_SCREEN_WIDTH)
return x;
else
return (SCREEN_WIDTH - SCREEN_SCALE_X(DEFAULT_SCREEN_WIDTH)) / 2 + SCREEN_SCALE_X(x);
}
#endif