medfall

A super great game engine
Log | Files | Refs

commit 63e5da3b1e0d947db85547747aeacdd48103ba57
parent d9f856fb7923faf06d090c5948b1a013c778faa1
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Thu Jul  6 22:20:56 +0300

Don't fullscreen the launcher!

Diffstat:
gl.cc | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gl.cc b/gl.cc @@ -131,7 +131,8 @@ GLFWwindow * gl_init( WindowType window_type ) { glfwWindowHint( GLFW_CONTEXT_VERSION_MINOR, 3 ); glfwWindowHint( GLFW_OPENGL_DEBUG_CONTEXT, 1 ); - GLFWwindow * window = glfwCreateWindow( width, height, "Medfall", monitor, NULL ); + GLFWmonitor * window_monitor = window_type == WINDOW_GAME ? monitor : NULL; + GLFWwindow * window = glfwCreateWindow( width, height, "Medfall", window_monitor, NULL ); if( !window ) { FATAL( "glfwCreateWindow" ); }