git-svn-id: https://svn.eduke32.com/eduke32@1117 1a8010ca-5511-0410-912e-c29ae57300e0

This commit is contained in:
terminx 2008-10-25 03:20:41 +00:00
parent f070a571d9
commit 84c763f544
2 changed files with 10 additions and 4 deletions

View file

@ -896,13 +896,14 @@ void resizeglcheck()
if ((glox1 != windowx1) || (gloy1 != windowy1) || (glox2 != windowx2) || (gloy2 != windowy2))
{
double ratio = 1.0;
double ratio = 1.05;
if (glwidescreen == 1)
ratio = 1.2f;
else if (glprojectionhacks == 1)
{
ratio += (gshang*gshang)*0.36f;
double mul = (gshang*gshang);
ratio += mul*mul*mul*mul;
}
else if (glprojectionhacks == 2)
{
@ -4170,13 +4171,14 @@ void polymost_drawrooms()
short hitsect, hitwall, hitsprite;
int vx, vy, vz, hitx, hity, hitz;
int cz, fz;
double ratio = 1.0;
double ratio = 1.05;
if (glwidescreen == 1)
ratio = 1.2f;
else if (glprojectionhacks == 1)
{
ratio += (gshang*gshang)*0.36f;
double mul = (gshang*gshang);
ratio += mul*mul*mul*mul;
}
else if (glprojectionhacks == 2)
{

View file

@ -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
* like that in sdlmusic.h here, too???
*/
UNREFERENCED_PARAMETER(soundcard);
UNREFERENCED_PARAMETER(buffersize);
DSL_SetErrorCode(DSL_Ok);
if (SDL_InitSubSystem(SDL_INIT_AUDIO) < 0)