mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-16 10:54:07 +00:00
Update Frontend.
This commit is contained in:
parent
936a8e8351
commit
69b5c9f1e0
24 changed files with 1444 additions and 194 deletions
|
@ -20,12 +20,24 @@ uint8 &CDraw::FadeBlue = *(uint8*)0x95CD53;
|
|||
float
|
||||
CDraw::FindAspectRatio(void)
|
||||
{
|
||||
#ifndef ASPECT_RATIO_SCALE
|
||||
if(FrontEndMenuManager.m_PrefsUseWideScreen)
|
||||
return 16.0f/9.0f;
|
||||
else
|
||||
return 4.0f/3.0f;
|
||||
#else
|
||||
switch (FrontEndMenuManager.m_PrefsUseWideScreen) {
|
||||
case AR_AUTO:
|
||||
return SCREEN_WIDTH / SCREEN_HEIGHT;
|
||||
case AR_4_3:
|
||||
return 4.0f / 3.0f;
|
||||
case AR_16_9:
|
||||
return 16.0f / 9.0f;
|
||||
};
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef ASPECT_RATIO_SCALE
|
||||
// convert a 4:3 hFOV to vFOV,
|
||||
// then convert that vFOV to hFOV for our aspect ratio,
|
||||
// i.e. HOR+
|
||||
|
@ -41,6 +53,7 @@ CDraw::ConvertFOV(float hfov)
|
|||
hfov = atan(tan(vfov/2) * ar2) *2;
|
||||
return RADTODEG(hfov);
|
||||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
CDraw::SetFOV(float fov)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue