Fix issue 338: UI scale should stay the same regardless of pixel scale

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1621 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud 2010-09-17 15:35:13 +00:00
parent db8bde5ba6
commit 6d059e7234

View File

@ -522,6 +522,8 @@ try_again:
Menu_factor_Y=1;
break;
default: // Stay below some reasonable size
if (factor>Max(Pixel_width,Pixel_height))
factor/=Max(Pixel_width,Pixel_height);
Menu_factor_X=Min(factor,abs(Config.Ratio));
Menu_factor_Y=Min(factor,abs(Config.Ratio));
}