mirror of
https://github.com/DrBeef/DVR.git
synced 2024-11-25 21:41:00 +00:00
Small tweaks
This commit is contained in:
parent
219311a246
commit
c4cf8651d5
3 changed files with 9 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -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){
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue