Skip to content

Commit

Permalink
fix to match the RGFW updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ColleagueRiley committed Jun 8, 2024
1 parent dd186fe commit 51d0fbc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/platforms/rcore_desktop_rgfw.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,11 @@ void SetWindowFocused(void)
// Get native window handle
void *GetWindowHandle(void)
{
return platform.window->src.window;
#ifndef RGFW_WINDOWS
return (void*)platform.window->src.window;
#else
return platform.window->src.hwnd;
#endif
}

// Get number of monitors
Expand Down

0 comments on commit 51d0fbc

Please sign in to comment.