summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRay <[email protected]>2020-01-29 11:42:55 +0100
committerRay <[email protected]>2020-01-29 11:42:55 +0100
commit6a2e51ec78b6786cd37e3277d667f2a07cbba8bc (patch)
treefe836452352ea55496d9a48c44402c664583ee99
parente6d304cdc2aff2e67e08a3ffcb245d6d9b5fed09 (diff)
downloadraylib-6a2e51ec78b6786cd37e3277d667f2a07cbba8bc.tar.gz
raylib-6a2e51ec78b6786cd37e3277d667f2a07cbba8bc.zip
Added comments related to #837
-rw-r--r--src/core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core.c b/src/core.c
index 32b89236..6ae65853 100644
--- a/src/core.c
+++ b/src/core.c
@@ -2688,7 +2688,9 @@ static bool InitGraphicsDevice(int width, int height)
//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) && defined(SUPPORT_HIGH_DPI)
- // NOTE: If using external GLFW, it requires latest GLFW 3.3 for this functionality
+ // Resize window content area based on the monitor content scale.
+ // NOTE: This hint only has an effect on platforms where screen coordinates and pixels always map 1:1 such as Windows and X11.
+ // On platforms like macOS the resolution of the framebuffer is changed independently of the window size.
glfwWindowHint(GLFW_SCALE_TO_MONITOR, GLFW_TRUE); // Scale content area based on the monitor content scale where window is placed on
#endif