Skip to content

Commit

Permalink
move stdcall def to windows only
Browse files Browse the repository at this point in the history
  • Loading branch information
ColleagueRiley committed Oct 7, 2024
1 parent 3435f1a commit 2873f23
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/platforms/rcore_desktop_rgfw.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**********************************************************************************************
*
* rcore_desktop_rgfw template - Functions to manage window, graphics device and inputs
* rcore_desktop_rgfw - Functions to manage window, graphics device and inputs
*
* PLATFORM: RGFW
* - Windows (Win32, Win64)
Expand Down Expand Up @@ -69,15 +69,14 @@ void CloseWindow(void);
#define CloseWindow CloseWindow_win32
#define ShowCursor __imp_ShowCursor
#define _APISETSTRING_
__declspec(dllimport) int __stdcall MultiByteToWideChar(unsigned int CodePage, unsigned long dwFlags, const char *lpMultiByteStr, int cbMultiByte, wchar_t *lpWideCharStr, int cchWideChar);
#endif

#if defined(__APPLE__)
#define Point NSPOINT
#define Size NSSIZE
#endif

__declspec(dllimport) int __stdcall MultiByteToWideChar(unsigned int CodePage, unsigned long dwFlags, const char *lpMultiByteStr, int cbMultiByte, wchar_t *lpWideCharStr, int cchWideChar);

#include "../external/RGFW.h"

#if defined(__WIN32) || defined(__WIN64)
Expand Down Expand Up @@ -289,7 +288,6 @@ void SetWindowState(unsigned int flags)
}
if (flags & FLAG_WINDOW_RESIZABLE)
{
printf("%i %i\n", platform.window->r.w, platform.window->r.h);
RGFW_window_setMaxSize(platform.window, RGFW_AREA(platform.window->r.w, platform.window->r.h));
RGFW_window_setMinSize(platform.window, RGFW_AREA(platform.window->r.w, platform.window->r.h));
}
Expand Down

0 comments on commit 2873f23

Please sign in to comment.