summaryrefslogtreecommitdiffhomepage
path: root/src/platforms
diff options
context:
space:
mode:
authorRay <[email protected]>2023-12-14 15:32:53 +0100
committerRay <[email protected]>2023-12-14 15:32:53 +0100
commit38626dcffdf03b031491bdc6b6df97d9aee2a6e3 (patch)
tree99c8918cb66075551541edbd9f59eb730d3eaf01 /src/platforms
parentd29b36310ff155cebd9e8227752805106489943a (diff)
downloadraylib-38626dcffdf03b031491bdc6b6df97d9aee2a6e3.tar.gz
raylib-38626dcffdf03b031491bdc6b6df97d9aee2a6e3.zip
REVIEWED: HighDPI support on Web platform #3372 -WIP-
NOTE: The code is commented until the build system gets updated to latest emscripten.
Diffstat (limited to 'src/platforms')
-rw-r--r--src/platforms/rcore_web.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/platforms/rcore_web.c b/src/platforms/rcore_web.c
index 8ffceafd..76e7dba3 100644
--- a/src/platforms/rcore_web.c
+++ b/src/platforms/rcore_web.c
@@ -944,8 +944,13 @@ int InitPlatform(void)
if ((CORE.Window.flags & FLAG_WINDOW_TOPMOST) > 0) glfwWindowHint(GLFW_FLOATING, GLFW_TRUE);
else glfwWindowHint(GLFW_FLOATING, GLFW_FALSE);
- // NOTE: Some GLFW flags are not supported on HTML5
- // e.g.: GLFW_TRANSPARENT_FRAMEBUFFER, GLFW_SCALE_TO_MONITOR, GLFW_COCOA_RETINA_FRAMEBUFFER, GLFW_MOUSE_PASSTHROUGH
+ // NOTE: Some GLFW flags are not supported on HTML5
+ // e.g.: GLFW_TRANSPARENT_FRAMEBUFFER, GLFW_COCOA_RETINA_FRAMEBUFFER, GLFW_MOUSE_PASSTHROUGH
+
+ // Scale content area based on the monitor content scale where window is placed on
+ // NOTE: This feature requires emscripten 3.1.51
+ //if ((CORE.Window.flags & FLAG_WINDOW_HIGHDPI) > 0) glfwWindowHint(GLFW_SCALE_TO_MONITOR, GLFW_TRUE);
+ //else glfwWindowHint(GLFW_SCALE_TO_MONITOR, GLFW_FALSE);
if (CORE.Window.flags & FLAG_MSAA_4X_HINT)
{