File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -1131,7 +1131,15 @@ int InitPlatform(void)
1131
1131
if ((CORE .Window .flags & FLAG_WINDOW_UNDECORATED ) > 0 ) glfwWindowHint (GLFW_DECORATED , GLFW_FALSE ); // Border and buttons on Window
1132
1132
else glfwWindowHint (GLFW_DECORATED , GLFW_TRUE ); // Decorated window
1133
1133
1134
- if ((CORE .Window .flags & FLAG_WINDOW_RESIZABLE ) > 0 ) glfwWindowHint (GLFW_RESIZABLE , GLFW_TRUE ); // Resizable window
1134
+ if ((CORE .Window .flags & FLAG_WINDOW_RESIZABLE ) > 0 )
1135
+ {
1136
+ glfwWindowHint (GLFW_RESIZABLE , GLFW_TRUE ); // Resizable window
1137
+
1138
+ // bypass hidpi code block in libglfw.js
1139
+ // https://github.com/raysan5/raylib/pull/4945#issuecomment-2906956170
1140
+ //------------------------------------------------------------------------
1141
+ glfwWindowHint (GLFW_SCALE_TO_MONITOR , GLFW_TRUE );
1142
+ }
1135
1143
else glfwWindowHint (GLFW_RESIZABLE , GLFW_FALSE ); // Avoid window being resizable
1136
1144
1137
1145
// Disable FLAG_WINDOW_MINIMIZED, not supported on initialization
You can’t perform that action at this time.
0 commit comments