mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
- do config migration for vid_scale_custompixelaspect
This commit is contained in:
parent
5d2d187b84
commit
99ef731fd3
1 changed files with 12 additions and 0 deletions
|
@ -65,6 +65,7 @@ EXTERN_CVAR (Bool, wi_percents)
|
||||||
EXTERN_CVAR (Int, gl_texture_hqresizemode)
|
EXTERN_CVAR (Int, gl_texture_hqresizemode)
|
||||||
EXTERN_CVAR (Int, gl_texture_hqresizemult)
|
EXTERN_CVAR (Int, gl_texture_hqresizemult)
|
||||||
EXTERN_CVAR (Int, vid_preferbackend)
|
EXTERN_CVAR (Int, vid_preferbackend)
|
||||||
|
EXTERN_CVAR (Float, vid_scale_custompixelaspect)
|
||||||
|
|
||||||
FGameConfigFile::FGameConfigFile ()
|
FGameConfigFile::FGameConfigFile ()
|
||||||
{
|
{
|
||||||
|
@ -520,6 +521,7 @@ void FGameConfigFile::DoGlobalSetup ()
|
||||||
}
|
}
|
||||||
if (last < 219)
|
if (last < 219)
|
||||||
{
|
{
|
||||||
|
// 2019-12-06 - polybackend merge
|
||||||
// migrate vid_enablevulkan to vid_preferbackend
|
// migrate vid_enablevulkan to vid_preferbackend
|
||||||
auto var = FindCVar("vid_enablevulkan", NULL);
|
auto var = FindCVar("vid_enablevulkan", NULL);
|
||||||
if (var != NULL)
|
if (var != NULL)
|
||||||
|
@ -527,6 +529,16 @@ void FGameConfigFile::DoGlobalSetup ()
|
||||||
UCVarValue v = var->GetGenericRep(CVAR_Int);
|
UCVarValue v = var->GetGenericRep(CVAR_Int);
|
||||||
vid_preferbackend = v.Int;
|
vid_preferbackend = v.Int;
|
||||||
}
|
}
|
||||||
|
// 2019-12-31 - r_videoscale.cpp changes
|
||||||
|
var = FindCVar("vid_scale_customstretched", NULL);
|
||||||
|
if (var != NULL)
|
||||||
|
{
|
||||||
|
UCVarValue v = var->GetGenericRep(CVAR_Bool);
|
||||||
|
if (v.Bool)
|
||||||
|
vid_scale_custompixelaspect = 1.2;
|
||||||
|
else
|
||||||
|
vid_scale_custompixelaspect = 1.0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue