Small tweaks

This commit is contained in:
Simon 2016-03-08 21:32:53 +00:00
parent 219311a246
commit c4cf8651d5
3 changed files with 9 additions and 4 deletions

View file

@ -77,7 +77,7 @@ snd_channels 8
# Video settings # Video settings
videomode "32" videomode "32"
screen_width 800 screen_width 720
screen_height 600 screen_height 600
use_fullscreen 1 use_fullscreen 1
use_doublebuffer 1 use_doublebuffer 1

View file

@ -405,7 +405,12 @@ public class MainActivity
int pitchOffset = (int)(-(eulerAngles[0]/M_PI)*(eye.getViewport().height)); 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 // Calculate the projection and view transformation
Matrix.orthoM(openGL.view, 0, 0, eye.getViewport().width, 0, eye.getViewport().height, 0, 50); Matrix.orthoM(openGL.view, 0, 0, eye.getViewport().width, 0, eye.getViewport().height, 0, 50);
@ -662,7 +667,7 @@ public class MainActivity
@Override @Override
public void OnQuit(int code) { public void OnQuit(int code) {
try { try {
Thread.sleep(250); Thread.sleep(500);
} }
catch (InterruptedException ie){ catch (InterruptedException ie){
} }

View file

@ -19,7 +19,7 @@ import doom.util.DoomTools;
public class AudioManager public class AudioManager
{ {
static final String TAG = "AudioMgr"; static final String TAG = "AudioMgr";
public static final int MAX_CLIPS = 20; public static final int MAX_CLIPS = 25;
static private AudioManager am ; static private AudioManager am ;