mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
git-svn-id: https://svn.eduke32.com/eduke32@1117 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
f070a571d9
commit
84c763f544
2 changed files with 10 additions and 4 deletions
|
@ -896,13 +896,14 @@ void resizeglcheck()
|
||||||
|
|
||||||
if ((glox1 != windowx1) || (gloy1 != windowy1) || (glox2 != windowx2) || (gloy2 != windowy2))
|
if ((glox1 != windowx1) || (gloy1 != windowy1) || (glox2 != windowx2) || (gloy2 != windowy2))
|
||||||
{
|
{
|
||||||
double ratio = 1.0;
|
double ratio = 1.05;
|
||||||
|
|
||||||
if (glwidescreen == 1)
|
if (glwidescreen == 1)
|
||||||
ratio = 1.2f;
|
ratio = 1.2f;
|
||||||
else if (glprojectionhacks == 1)
|
else if (glprojectionhacks == 1)
|
||||||
{
|
{
|
||||||
ratio += (gshang*gshang)*0.36f;
|
double mul = (gshang*gshang);
|
||||||
|
ratio += mul*mul*mul*mul;
|
||||||
}
|
}
|
||||||
else if (glprojectionhacks == 2)
|
else if (glprojectionhacks == 2)
|
||||||
{
|
{
|
||||||
|
@ -4170,13 +4171,14 @@ void polymost_drawrooms()
|
||||||
short hitsect, hitwall, hitsprite;
|
short hitsect, hitwall, hitsprite;
|
||||||
int vx, vy, vz, hitx, hity, hitz;
|
int vx, vy, vz, hitx, hity, hitz;
|
||||||
int cz, fz;
|
int cz, fz;
|
||||||
double ratio = 1.0;
|
double ratio = 1.05;
|
||||||
|
|
||||||
if (glwidescreen == 1)
|
if (glwidescreen == 1)
|
||||||
ratio = 1.2f;
|
ratio = 1.2f;
|
||||||
else if (glprojectionhacks == 1)
|
else if (glprojectionhacks == 1)
|
||||||
{
|
{
|
||||||
ratio += (gshang*gshang)*0.36f;
|
double mul = (gshang*gshang);
|
||||||
|
ratio += mul*mul*mul*mul;
|
||||||
}
|
}
|
||||||
else if (glprojectionhacks == 2)
|
else if (glprojectionhacks == 2)
|
||||||
{
|
{
|
||||||
|
|
|
@ -98,6 +98,10 @@ int DSL_Init(int soundcard, int mixrate, int numchannels, int samplebits, int bu
|
||||||
/* FIXME: Do I need an SDL_mixer version check
|
/* FIXME: Do I need an SDL_mixer version check
|
||||||
* like that in sdlmusic.h here, too???
|
* like that in sdlmusic.h here, too???
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
UNREFERENCED_PARAMETER(soundcard);
|
||||||
|
UNREFERENCED_PARAMETER(buffersize);
|
||||||
|
|
||||||
DSL_SetErrorCode(DSL_Ok);
|
DSL_SetErrorCode(DSL_Ok);
|
||||||
|
|
||||||
if (SDL_InitSubSystem(SDL_INIT_AUDIO) < 0)
|
if (SDL_InitSubSystem(SDL_INIT_AUDIO) < 0)
|
||||||
|
|
Loading…
Reference in a new issue