Adding window visibility configuration flag.
This commit is contained in:
parent
e48f2f9d43
commit
5adcc30a2e
2 changed files with 6 additions and 2 deletions
|
|
@ -2247,6 +2247,9 @@ static bool InitGraphicsDevice(int width, int height)
|
|||
//glfwWindowHint(GLFW_AUX_BUFFERS, 0); // Number of auxiliar buffers
|
||||
|
||||
// Check some Window creation flags
|
||||
if (configFlags & FLAG_WINDOW_HIDDEN) glfwWindowHint(GLFW_VISIBLE, GL_FALSE); // Visible window
|
||||
else glfwWindowHint(GLFW_VISIBLE, GL_TRUE); // Window initially hidden
|
||||
|
||||
if (configFlags & FLAG_WINDOW_RESIZABLE) glfwWindowHint(GLFW_RESIZABLE, GL_TRUE); // Resizable window
|
||||
else glfwWindowHint(GLFW_RESIZABLE, GL_FALSE); // Avoid window being resizable
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue