aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2019-04-12 13:44:16 +0200
committerRay <raysan5@gmail.com>2019-04-12 13:44:16 +0200
commitfc5dd5d99fb233879885cd02da5010d81f37d0b0 (patch)
tree011a4d843e25de36f4dc9e7f1d8ee3d3ec189e07 /src
parentdf90ba6e463e5689039821fe93ea93d0a996b035 (diff)
downloadraylib-fc5dd5d99fb233879885cd02da5010d81f37d0b0.tar.gz
raylib-fc5dd5d99fb233879885cd02da5010d81f37d0b0.zip
FLAG not supported on web GLFW implementation
Diffstat (limited to 'src')
-rw-r--r--src/core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index e8316213..ba41c773 100644
--- a/src/core.c
+++ b/src/core.c
@@ -2356,7 +2356,9 @@ static bool InitGraphicsDevice(int width, int height)
//glfwWindowHint(GLFW_REFRESH_RATE, 0); // Refresh rate for fullscreen window
//glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_API); // OpenGL API to use. Alternative: GLFW_OPENGL_ES_API
//glfwWindowHint(GLFW_AUX_BUFFERS, 0); // Number of auxiliar buffers
+#if defined(PLATFORM_DESKTOP)
glfwWindowHint(GLFW_SCALE_TO_MONITOR, GLFW_TRUE); // Scale content area based on the monitor content scale where window is placed on
+#endif
// Check some Window creation flags
if (configFlags & FLAG_WINDOW_HIDDEN) glfwWindowHint(GLFW_VISIBLE, GL_FALSE); // Visible window