summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorMarco Lizza <[email protected]>2019-01-10 14:54:55 +0100
committerMarco Lizza <[email protected]>2019-01-10 14:54:55 +0100
commit5adcc30a2e3984d2df59e228c9360edf47f63c7a (patch)
tree4001a3296e7b6afe583d9c8506cce801ab174bae /src/core.c
parente48f2f9d43238293059b5c3ecec8e13eecc9a68b (diff)
downloadraylib-5adcc30a2e3984d2df59e228c9360edf47f63c7a.tar.gz
raylib-5adcc30a2e3984d2df59e228c9360edf47f63c7a.zip
Adding window visibility configuration flag.
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index 79404abe..b34afeff 100644
--- a/src/core.c
+++ b/src/core.c
@@ -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