Add support for the poor souls on a 386 that can't afford to use full screen

This commit is contained in:
Magnus Norddahl 2024-09-08 22:25:24 +02:00
commit b2040a0892
4 changed files with 8 additions and 1 deletions

View file

@ -20,6 +20,9 @@ struct HWViewpointUniforms
VSMatrix mNormalViewMatrix;
FVector4 mCameraPos;
FVector4 mClipLine;
int mViewOffsetX = 0;
int mViewOffsetY = 0;
float mGlobVis = 1.f;
int mPalLightLevels = 0;

View file

@ -111,6 +111,8 @@ void HWDrawInfo::StartScene(FRenderViewpoint &parentvp, HWViewpointUniforms *uni
VPUniforms.mProjectionMatrix.loadIdentity();
VPUniforms.mViewMatrix.loadIdentity();
VPUniforms.mNormalViewMatrix.loadIdentity();
VPUniforms.mViewOffsetX = -screen->mSceneViewport.left;
VPUniforms.mViewOffsetY = -screen->mSceneViewport.top;
VPUniforms.mViewHeight = viewheight;
if (lightmode == ELightMode::Build)
{