Adjusted formatting to comply with contribution guidelines

This commit is contained in:
Diogo Diniz
2025-08-14 19:58:22 +01:00
parent eae1296b08
commit 3ef5ee878c

View File

@@ -88,11 +88,10 @@
#define GLFW_EXPOSE_NATIVE_WAYLAND
#endif
// Include native header only once, regardless of how many backends are defined
#include "GLFW/glfw3native.h" // Required for: glfwGetX11Window() and glfwGetWaylandWindow()
#include "GLFW/glfw3native.h" // Include native header only once, regardless of how many backends are defined
// Required for: glfwGetX11Window() and glfwGetWaylandWindow()
// Clean up X11-specific hacks
#if defined(_GLFW_X11)
#if defined(_GLFW_X11) // Clean up X11-specific hacks
#undef Font // Revert hack and allow normal raylib Font usage
#endif
#endif
@@ -741,10 +740,12 @@ void *GetWindowHandle(void)
#if defined(_GLFW_WAYLAND)
#if defined(_GLFW_X11)
int platformID = glfwGetPlatform();
if (platformID == GLFW_PLATFORM_WAYLAND) {
if (platformID == GLFW_PLATFORM_WAYLAND)
{
return glfwGetWaylandWindow(platform.handle);
}
else {
else
{
X11WindowHandle = glfwGetX11Window(platform.handle);
return &X11WindowHandle;
}