From 84c763f54482588d2400282f55d510b38a6cfc26 Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 25 Oct 2008 03:20:41 +0000 Subject: [PATCH] git-svn-id: https://svn.eduke32.com/eduke32@1117 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/polymost.c | 10 ++++++---- polymer/eduke32/source/jaudiolib/dsl.c | 4 ++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/polymer/eduke32/build/src/polymost.c b/polymer/eduke32/build/src/polymost.c index 872ca66e0..692d43e8f 100644 --- a/polymer/eduke32/build/src/polymost.c +++ b/polymer/eduke32/build/src/polymost.c @@ -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) { diff --git a/polymer/eduke32/source/jaudiolib/dsl.c b/polymer/eduke32/source/jaudiolib/dsl.c index cbb7353aa..233c73bd3 100644 --- a/polymer/eduke32/source/jaudiolib/dsl.c +++ b/polymer/eduke32/source/jaudiolib/dsl.c @@ -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)