diff --git a/app/src/main/assets/DVR.cfg b/app/src/main/assets/DVR.cfg index 212062f..e3e5afd 100644 --- a/app/src/main/assets/DVR.cfg +++ b/app/src/main/assets/DVR.cfg @@ -77,7 +77,7 @@ snd_channels 8 # Video settings videomode "32" -screen_width 800 +screen_width 720 screen_height 600 use_fullscreen 1 use_doublebuffer 1 diff --git a/app/src/main/java/com/drbeef/dvr/MainActivity.java b/app/src/main/java/com/drbeef/dvr/MainActivity.java index 92b2eec..92e7168 100644 --- a/app/src/main/java/com/drbeef/dvr/MainActivity.java +++ b/app/src/main/java/com/drbeef/dvr/MainActivity.java @@ -405,7 +405,12 @@ public class MainActivity int pitchOffset = (int)(-(eulerAngles[0]/M_PI)*(eye.getViewport().height)); - openGL.SetupTriangle(x, y, w, h); + int widthScaler = 0; + float f = -(eulerAngles[0]/M_PI); + if (f > 0.125f) + widthScaler = (int)(((f - 0.125f)/2.0f) * eye.getViewport().width); + + openGL.SetupTriangle(x+widthScaler, y, w-widthScaler*2, h); // Calculate the projection and view transformation Matrix.orthoM(openGL.view, 0, 0, eye.getViewport().width, 0, eye.getViewport().height, 0, 50); @@ -662,7 +667,7 @@ public class MainActivity @Override public void OnQuit(int code) { try { - Thread.sleep(250); + Thread.sleep(500); } catch (InterruptedException ie){ } diff --git a/app/src/main/java/doom/audio/AudioManager.java b/app/src/main/java/doom/audio/AudioManager.java index 9c1f87c..9aa9e8f 100644 --- a/app/src/main/java/doom/audio/AudioManager.java +++ b/app/src/main/java/doom/audio/AudioManager.java @@ -19,7 +19,7 @@ import doom.util.DoomTools; public class AudioManager { static final String TAG = "AudioMgr"; - public static final int MAX_CLIPS = 20; + public static final int MAX_CLIPS = 25; static private AudioManager am ;