active_con_scale should respect uiscale

This commit is contained in:
Magnus Norddahl 2016-11-16 19:49:46 +01:00
parent 712e032573
commit ae889acaea

View file

@ -158,10 +158,14 @@ int active_con_scale()
int scale = con_scale;
if (scale <= 0)
{
scale = CleanXfac - 1;
if (scale <= 0)
scale = uiscale;
if (scale == 0)
{
scale = 1;
scale = CleanXfac - 1;
if (scale <= 0)
{
scale = 1;
}
}
}
return scale;