X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=vg%2Fvg.h;h=5d67f714807264699dbda5a33984ffe6e7f2cbba;hb=5293bf2e9c4f30d5b01f1e1638c00509c1674768;hp=c792527fce16a2c2ed6086f79965f19017578dae;hpb=499bcabb125cdf2618a6be89ccade08b007254f3;p=fishladder.git diff --git a/vg/vg.h b/vg/vg.h index c792527..5d67f71 100644 --- a/vg/vg.h +++ b/vg/vg.h @@ -35,8 +35,12 @@ m3x3f vg_pv; // Engine globals GLFWwindow* vg_window; -int vg_window_x = 1280; -int vg_window_y = 720; + +// 1366, 768 +// 1920, 1080 + +int vg_window_x = 1366; +int vg_window_y = 768; v2f vg_mouse; v3f vg_mouse_ws; @@ -150,6 +154,7 @@ static void vg_init( int argc, char *argv[], const char *window_name ) glfwWindowHint( GLFW_CONTEXT_VERSION_MINOR, 3 ); glfwWindowHint( GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE ); glfwWindowHint( GLFW_OPENGL_DEBUG_CONTEXT, GL_TRUE ); + glfwWindowHint( GLFW_RESIZABLE, GLFW_FALSE ); glfwWindowHint( GLFW_SAMPLES, 4 ); @@ -255,7 +260,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 );