basic world text
[fishladder.git] / vg / vg.h
diff --git a/vg/vg.h b/vg/vg.h
index c792527fce16a2c2ed6086f79965f19017578dae..b7ebb2f0545558fd1d53f394d956c1d043db5081 100644 (file)
--- a/vg/vg.h
+++ b/vg/vg.h
@@ -35,8 +35,17 @@ m3x3f vg_pv;
 
 // Engine globals
 GLFWwindow* vg_window;
-int vg_window_x = 1280;
-int vg_window_y = 720;
+
+// 1366, 768
+// 1920, 1080
+
+#ifdef VG_CAPTURE_MODE
+int vg_window_x = 1920;
+int vg_window_y = 1080;
+#else
+int vg_window_x = 1366;
+int vg_window_y = 768;
+#endif
 
 v2f vg_mouse;
 v3f vg_mouse_ws;
@@ -151,6 +160,12 @@ static void vg_init( int argc, char *argv[], const char *window_name )
        glfwWindowHint( GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE );
        glfwWindowHint( GLFW_OPENGL_DEBUG_CONTEXT, GL_TRUE );
        
+#ifdef VG_CAPTURE_MODE
+       glfwWindowHint( GLFW_RESIZABLE, GLFW_FALSE );
+#else
+       glfwWindowHint( GLFW_RESIZABLE, GLFW_TRUE );
+#endif
+
        glfwWindowHint( GLFW_SAMPLES, 4 );
        
        GLFWmonitor *monitor_primary = glfwGetPrimaryMonitor();
@@ -255,7 +270,7 @@ static void vg_init( int argc, char *argv[], const char *window_name )
                                vg_debugtools_draw();
                                
                                ui_resolve( &ui_global_ctx );
-                               ui_draw( &ui_global_ctx );
+                               ui_draw( &ui_global_ctx, NULL );
                        }
                        
                        glfwSwapBuffers( vg_window );