|
|
@ -100,7 +100,7 @@ |
|
|
#include <unistd.h> // Required for: usleep() |
|
|
#include <unistd.h> // Required for: usleep() |
|
|
|
|
|
|
|
|
//#define GLFW_EXPOSE_NATIVE_COCOA // WARNING: Fails due to type redefinition |
|
|
//#define GLFW_EXPOSE_NATIVE_COCOA // WARNING: Fails due to type redefinition |
|
|
void *glfwGetCocoaWindow(GLFWwindow* handle); |
|
|
|
|
|
|
|
|
void *glfwGetCocoaWindow(GLFWwindow *handle); |
|
|
#include "GLFW/glfw3native.h" // Required for: glfwGetCocoaWindow() |
|
|
#include "GLFW/glfw3native.h" // Required for: glfwGetCocoaWindow() |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
@ -224,8 +224,8 @@ void ToggleFullscreen(void) |
|
|
if (FLAG_IS_SET(CORE.Window.flags, FLAG_WINDOW_HIGHDPI)) |
|
|
if (FLAG_IS_SET(CORE.Window.flags, FLAG_WINDOW_HIGHDPI)) |
|
|
{ |
|
|
{ |
|
|
Vector2 scaleDpi = GetWindowScaleDPI(); |
|
|
Vector2 scaleDpi = GetWindowScaleDPI(); |
|
|
CORE.Window.screen.width = (unsigned int)(CORE.Window.screen.width * scaleDpi.x); |
|
|
|
|
|
CORE.Window.screen.height = (unsigned int)(CORE.Window.screen.height * scaleDpi.y); |
|
|
|
|
|
|
|
|
CORE.Window.screen.width = (unsigned int)(CORE.Window.screen.width*scaleDpi.x); |
|
|
|
|
|
CORE.Window.screen.height = (unsigned int)(CORE.Window.screen.height*scaleDpi.y); |
|
|
} |
|
|
} |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
@ -303,8 +303,8 @@ void ToggleBorderlessWindowed(void) |
|
|
if (FLAG_IS_SET(CORE.Window.flags, FLAG_WINDOW_HIGHDPI)) |
|
|
if (FLAG_IS_SET(CORE.Window.flags, FLAG_WINDOW_HIGHDPI)) |
|
|
{ |
|
|
{ |
|
|
Vector2 scaleDpi = GetWindowScaleDPI(); |
|
|
Vector2 scaleDpi = GetWindowScaleDPI(); |
|
|
CORE.Window.screen.width = (unsigned int)(CORE.Window.screen.width * scaleDpi.x); |
|
|
|
|
|
CORE.Window.screen.height = (unsigned int)(CORE.Window.screen.height * scaleDpi.y); |
|
|
|
|
|
|
|
|
CORE.Window.screen.width = (unsigned int)(CORE.Window.screen.width*scaleDpi.x); |
|
|
|
|
|
CORE.Window.screen.height = (unsigned int)(CORE.Window.screen.height*scaleDpi.y); |
|
|
} |
|
|
} |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
|