the holy grail
This commit is contained in:
parent
358917ffc3
commit
cf2099f18a
1 changed files with 9 additions and 1 deletions
|
@ -1131,7 +1131,15 @@ int InitPlatform(void)
|
||||||
if ((CORE.Window.flags & FLAG_WINDOW_UNDECORATED) > 0) glfwWindowHint(GLFW_DECORATED, GLFW_FALSE); // Border and buttons on Window
|
if ((CORE.Window.flags & FLAG_WINDOW_UNDECORATED) > 0) glfwWindowHint(GLFW_DECORATED, GLFW_FALSE); // Border and buttons on Window
|
||||||
else glfwWindowHint(GLFW_DECORATED, GLFW_TRUE); // Decorated window
|
else glfwWindowHint(GLFW_DECORATED, GLFW_TRUE); // Decorated window
|
||||||
|
|
||||||
if ((CORE.Window.flags & FLAG_WINDOW_RESIZABLE) > 0) glfwWindowHint(GLFW_RESIZABLE, GLFW_TRUE); // Resizable window
|
if ((CORE.Window.flags & FLAG_WINDOW_RESIZABLE) > 0)
|
||||||
|
{
|
||||||
|
glfwWindowHint(GLFW_RESIZABLE, GLFW_TRUE); // Resizable window
|
||||||
|
|
||||||
|
// bypass hidpi code block in libglfw.js
|
||||||
|
// https://github.com/raysan5/raylib/pull/4945#issuecomment-2906956170
|
||||||
|
//------------------------------------------------------------------------
|
||||||
|
glfwWindowHint(GLFW_SCALE_TO_MONITOR, GLFW_TRUE);
|
||||||
|
}
|
||||||
else glfwWindowHint(GLFW_RESIZABLE, GLFW_FALSE); // Avoid window being resizable
|
else glfwWindowHint(GLFW_RESIZABLE, GLFW_FALSE); // Avoid window being resizable
|
||||||
|
|
||||||
// Disable FLAG_WINDOW_MINIMIZED, not supported on initialization
|
// Disable FLAG_WINDOW_MINIMIZED, not supported on initialization
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue