Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
ColleagueRiley committed Jul 4, 2024
1 parent d091ff9 commit f0a9ecc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion deps/RFont.h
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,8 @@ RFont_font* RFont_font_init(const char* font_name) {
char* ttf_buffer = (char*)malloc(sizeof(char) * size);
fseek(ttf_file, 0U, SEEK_SET);

RFONT_UNUSED(fread(ttf_buffer, 1, size, ttf_file))
void* out = fread(ttf_buffer, 1, size, ttf_file);
RFONT_UNUSED(out)


return RFont_font_init_data((u8*)ttf_buffer, 1);
Expand Down
7 changes: 6 additions & 1 deletion deps/RGFW.h
Original file line number Diff line number Diff line change
Expand Up @@ -2337,7 +2337,12 @@ Start of Linux / Unix defines
/* set event key data */
KeySym sym = XkbKeycodeToKeysym((Display*) win->src.display, E.xkey.keycode, 0, E.xkey.state & ShiftMask ? 1 : 0);
win->event.keyCode = RGFW_apiKeyCodeToRGFW(E.xkey.keycode);
strncpy(win->event.keyName, XKeysymToString(sym), 16);

char* str = XKeysymToString(sym);
if (str != NULL)
strncpy(win->event.keyName, str, 16);

win->event.keyName[15] = '\0';

RGFW_keyboard[win->event.keyCode].prev = RGFW_isPressed(win, win->event.keyCode);

Expand Down

0 comments on commit f0a9ecc

Please sign in to comment.