summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorSteven Fuller <relnev@icculus.org>2001-11-05 02:47:58 +0000
committerPatryk Obara <dreamer.tan@gmail.com>2019-08-20 02:22:36 +0200
commit06371ecc4597b34bf5f9ac3cd9bfa3c835c528f3 (patch)
tree9699d409030a11c26b7808005e58f66d0a21ec10 /src/main.c
parent442b6b52ea287efbd8e12b8b73327558fee58f34 (diff)
Re-fixed the menus and enabled another font drawing function.
Fixed Profile Loading/Saving (had to disable debug mode).
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/main.c b/src/main.c
index 890e8f9..232a5e0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -100,7 +100,7 @@ int SetSoftVideoMode(int Width, int Height, int Depth)
// SDL_WM_GrabInput(SDL_GRAB_ON);
// SDL_ShowCursor(0);
- if (isfull) {
+ if (isfull && !(surface->flags & SDL_FULLSCREEN)) {
SDL_WM_ToggleFullScreen(surface);
if (surface->flags & SDL_FULLSCREEN)
SDL_ShowCursor(0);
@@ -166,7 +166,7 @@ int SetOGLVideoMode(int Width, int Height)
// SDL_WM_GrabInput(SDL_GRAB_ON);
// SDL_ShowCursor(0);
- if (isfull) {
+ if (isfull && !(surface->flags & SDL_FULLSCREEN)) {
SDL_WM_ToggleFullScreen(surface);
if (surface->flags & SDL_FULLSCREEN)
SDL_ShowCursor(0);
@@ -185,7 +185,8 @@ int SetOGLVideoMode(int Width, int Height)
glLoadIdentity();
glEnable(GL_BLEND);
- glBlendFunc(GL_ONE, GL_ONE);
+// glBlendFunc(GL_ONE, GL_ONE);
+ glBlendFunc(GL_SRC_ALPHA, GL_ONE);
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LEQUAL);
@@ -592,7 +593,7 @@ void CheckForWindowsMessages()
MouseVelY = 0;
}
- if (KeyboardInput[KEY_LEFTALT] && DebouncedKeyboardInput[KEY_CR]) {
+ if ((KeyboardInput[KEY_LEFTALT]||KeyboardInput[KEY_RIGHTALT]) && DebouncedKeyboardInput[KEY_CR]) {
SDL_GrabMode gm;
SDL_WM_ToggleFullScreen(surface);
@@ -685,11 +686,12 @@ int main(int argc, char *argv[])
SetFastRandom();
GetPathFromRegistry();
-
+#if 0
{
extern int DebuggingCommandsActive;
DebuggingCommandsActive = 1;
}
+#endif
#if MARINE_DEMO
ffInit("fastfile/mffinfo.txt","fastfile/");