mirror of
https://github.com/raysan5/raylib.git
synced 2026-02-04 05:09:17 -05:00
Refactoring based on Coding Style Conventions (#5517)
Co-authored-by: maiconpintoabreu <maicon@thinkpad02.exads.com>
This commit is contained in:
@ -100,7 +100,7 @@
|
||||
#include <unistd.h> // Required for: usleep()
|
||||
|
||||
//#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()
|
||||
#endif
|
||||
|
||||
@ -224,8 +224,8 @@ void ToggleFullscreen(void)
|
||||
if (FLAG_IS_SET(CORE.Window.flags, FLAG_WINDOW_HIGHDPI))
|
||||
{
|
||||
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
|
||||
|
||||
@ -303,8 +303,8 @@ void ToggleBorderlessWindowed(void)
|
||||
if (FLAG_IS_SET(CORE.Window.flags, FLAG_WINDOW_HIGHDPI))
|
||||
{
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user