Using default_width and default_height constants
This commit is contained in:
parent
acffb63d7c
commit
fa495ddcc9
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ namespace gui {
|
||||||
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0);
|
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0);
|
||||||
glfwWindowHint(GLFW_OPENGL_DEBUG_CONTEXT, debugOpengl ? GLFW_TRUE : GLFW_FALSE);
|
glfwWindowHint(GLFW_OPENGL_DEBUG_CONTEXT, debugOpengl ? GLFW_TRUE : GLFW_FALSE);
|
||||||
wwindow = std::unique_ptr<GLFWwindow, decltype(&glfwDestroyWindow)>(
|
wwindow = std::unique_ptr<GLFWwindow, decltype(&glfwDestroyWindow)>(
|
||||||
glfwCreateWindow(1280, 720, "Billy Sheet tracker", nullptr, shared),
|
glfwCreateWindow(default_width, default_height, "Billy Sheet tracker", nullptr, shared),
|
||||||
glfwDestroyWindow);
|
glfwDestroyWindow);
|
||||||
|
|
||||||
glfwMakeContextCurrent(wwindow.get());
|
glfwMakeContextCurrent(wwindow.get());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue