Skip to content

Commit

Permalink
remove u16
Browse files Browse the repository at this point in the history
  • Loading branch information
ColleagueRiley committed Jun 27, 2024
1 parent d404101 commit 49f63e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/platforms/rcore_desktop_rgfw.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ extern CoreData CORE; // Global CORE state context

static PlatformData platform = { NULL }; // Platform specific

static const u16 RGFWKeyToRayKey[] = {
static const unsigned short RGFWKeyToRayKey[] = {
[RGFW_KEY_NULL] = KEY_NULL,
[RGFW_Quote] = KEY_APOSTROPHE,
[RGFW_Comma] = KEY_COMMA,
Expand Down Expand Up @@ -548,7 +548,7 @@ void *GetWindowHandle(void)
int GetMonitorCount(void)
{
RGFW_monitor* mons = RGFW_getMonitors();
u32 i;
size_t i;
for (i = 0; i < 6; i++) {
if (!mons[i].rect.x && !mons[i].rect.y && !mons[i].rect.w && mons[i].rect.h)
return i;
Expand All @@ -563,7 +563,7 @@ int GetCurrentMonitor(void)
RGFW_monitor* mons = RGFW_getMonitors();
RGFW_monitor mon = RGFW_window_getMonitor(platform.window);

u32 i;
size_t i;
for (i = 0; i < 6; i++) {
if (mons[i].rect.x == mon.rect.x &&
mons[i].rect.y == mon.rect.y)
Expand Down Expand Up @@ -1286,7 +1286,7 @@ void ClosePlatform(void)


static KeyboardKey ConvertScancodeToKey(u32 keycode) {
if (keycode > sizeof(RGFWKeyToRayKey) / sizeof(u16))
if (keycode > sizeof(RGFWKeyToRayKey) / sizeof(unsigned short))
return 0;

return RGFWKeyToRayKey[keycode];
Expand Down

0 comments on commit 49f63e4

Please sign in to comment.