- merged all portals with the same displacement together. While this provides
a mild performance increase it's not what I hoped it would do... - Moved portal initialization for the portal things to P_SpawnSpecials instead of having the things self-initialize in PostBeginPlay. This was done to ensure that the portals are fully set up when the game begins. Otherwise there is no decent way to let the renderer post-process this information during setup. - Changed: For 800x600 the default scaling handling of the options menu makes it become too small so for any resolution with a width between 800 and 959 it has been reverted to the regular clean scaling factor. SVN r2055 (trunk)
This commit is contained in:
parent
b6557a82ff
commit
3d40dbb659
6 changed files with 119 additions and 50 deletions
|
|
@ -1398,10 +1398,21 @@ bool V_DoModeSetup (int width, int height, int bits)
|
|||
assert(CleanWidth >= 320);
|
||||
assert(CleanHeight >= 200);
|
||||
|
||||
CleanXfac_1 = MAX(CleanXfac - 1, 1);
|
||||
CleanYfac_1 = MAX(CleanYfac - 1, 1);
|
||||
CleanWidth_1 = width / CleanXfac_1;
|
||||
CleanHeight_1 = height / CleanYfac_1;
|
||||
if (width < 800 || width >= 960)
|
||||
{
|
||||
CleanXfac_1 = MAX(CleanXfac - 1, 1);
|
||||
CleanYfac_1 = MAX(CleanYfac - 1, 1);
|
||||
CleanWidth_1 = width / CleanXfac_1;
|
||||
CleanHeight_1 = height / CleanYfac_1;
|
||||
}
|
||||
else // if the width is between 800 and 960 the ratio between the screensize and CleanXFac-1 becomes too large.
|
||||
{
|
||||
CleanXfac_1 = CleanXfac;
|
||||
CleanYfac_1 = CleanYfac;
|
||||
CleanWidth_1 = CleanWidth;
|
||||
CleanHeight_1 = CleanHeight;
|
||||
}
|
||||
|
||||
|
||||
DisplayWidth = width;
|
||||
DisplayHeight = height;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue