mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-25 23:25:40 +00:00
Merge pull request #165 from gm-matthew/widescreen
Don't expand culling planes unless widescreen is enabled
This commit is contained in:
commit
5fa402f2f5
|
@ -39,6 +39,8 @@ CNew3D::CNew3D(const Util::Config::Node &config, const std::string& gameName) :
|
||||||
m_primType = GL_LINES_ADJACENCY;
|
m_primType = GL_LINES_ADJACENCY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_wideScreen = config["WideScreen"].ValueAs<bool>();
|
||||||
|
|
||||||
m_r3dShader.LoadShader();
|
m_r3dShader.LoadShader();
|
||||||
glUseProgram(0);
|
glUseProgram(0);
|
||||||
|
|
||||||
|
@ -1555,7 +1557,7 @@ void CNew3D::CalcViewport(Viewport* vp)
|
||||||
|
|
||||||
vp->projectionMatrix.LoadIdentity(); // reset matrix
|
vp->projectionMatrix.LoadIdentity(); // reset matrix
|
||||||
|
|
||||||
if ((vp->vpX == 0) && (vp->vpWidth >= 495) && (vp->vpY == 0) && (vp->vpHeight >= 383)) {
|
if (m_wideScreen && (vp->vpX == 0) && (vp->vpWidth >= 495) && (vp->vpY == 0) && (vp->vpHeight >= 383)) {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Compute aspect ratio correction factor. "Window" refers to the full GL
|
* Compute aspect ratio correction factor. "Window" refers to the full GL
|
||||||
|
|
|
@ -258,6 +258,7 @@ private:
|
||||||
unsigned m_xOffs, m_yOffs;
|
unsigned m_xOffs, m_yOffs;
|
||||||
unsigned m_xRes, m_yRes; // resolution of Model 3's 496x384 display area within the window
|
unsigned m_xRes, m_yRes; // resolution of Model 3's 496x384 display area within the window
|
||||||
unsigned m_totalXRes, m_totalYRes; // total OpenGL window resolution
|
unsigned m_totalXRes, m_totalYRes; // total OpenGL window resolution
|
||||||
|
bool m_wideScreen;
|
||||||
|
|
||||||
// Real3D Base Matrix Pointer
|
// Real3D Base Matrix Pointer
|
||||||
const float *m_matrixBasePtr;
|
const float *m_matrixBasePtr;
|
||||||
|
|
Loading…
Reference in a new issue