Skip to content

Commit

Permalink
update RGFW
Browse files Browse the repository at this point in the history
  • Loading branch information
ColleagueRiley committed May 23, 2024
1 parent ec5c4c3 commit cd96aff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion example/ext/RGFW.h
Original file line number Diff line number Diff line change
Expand Up @@ -3299,6 +3299,8 @@ RGFW_UNUSED(win); /* if buffer rendering is not being used */
win->src.cursor = XcursorImageLoadCursor((Display*) win->src.display, native);

XcursorImageDestroy(native);
#else
RGFW_UNUSED(image) RGFW_UNUSED(a.w) RGFW_UNUSED(channels)
#endif
}

Expand Down Expand Up @@ -3679,7 +3681,7 @@ RGFW_UNUSED(win); /* if buffer rendering is not being used */
monitor.physW = (monitor.rect.w * 25.4f / 96.f);
monitor.physH = (monitor.rect.h * 25.4f / 96.f);

strncpy(monitor.name, DisplayString(display), 128);
strcpy(monitor.name, DisplayString(display));

XGetSystemContentScale(display, &monitor.scaleX, &monitor.scaleY);

Expand Down

0 comments on commit cd96aff

Please sign in to comment.