Skip to content

Commit 3621d3b

Browse files
fix dnd code
1 parent ad9d2c6 commit 3621d3b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

RGFW.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ int main() {
197197
#include <string.h>
198198

199199
#define RGFW_MEMCPY(dist, src, len) memcpy(dist, src, len)
200-
#define RGFW_STRNCMP(s1, s2, max) strcmp(s1, s2, max)
200+
#define RGFW_STRNCMP(s1, s2, max) strncmp(s1, s2, max)
201201
#endif
202202

203203
#if !_MSC_VER
@@ -3312,7 +3312,7 @@ RGFW_Event* RGFW_window_checkEvent(RGFW_window* win) {
33123312
while (*line) {
33133313
if (line[0] == '%' && line[1] && line[2]) {
33143314
const char digits[3] = { line[1], line[2], '\0' };
3315-
//path[index] = (char) strtol(digits, NULL, 16);
3315+
path[index] = (char) strtol(digits, NULL, 16);
33163316
line += 2;
33173317
} else
33183318
path[index] = *line;
@@ -3913,7 +3913,7 @@ static float XGetSystemContentDPI(Display* display, i32 screen) {
39133913
char* type = NULL;
39143914

39153915
if (XrmGetResource(db, "Xft.dpi", "Xft.Dpi", &type, &value) && type && RGFW_STRNCMP(type, "String", 7) == 0) {
3916-
//dpi = (float)atof(value.addr);
3916+
dpi = (float)atof(value.addr);
39173917
}
39183918
XrmDestroyDatabase(db);
39193919
}

0 commit comments

Comments
 (0)