Skip to content

Commit

Permalink
update RGFW
Browse files Browse the repository at this point in the history
  • Loading branch information
ColleagueRiley committed Mar 1, 2024
1 parent c0b3f9e commit 7f24e21
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions deps/RGFW.h
Original file line number Diff line number Diff line change
Expand Up @@ -1769,14 +1769,13 @@ RGFW_window* RGFW_createWindow(const char* name, RGFW_rect rect, u16 args) {

XFree(fbc);

i8 depth = 32;
u32 valuemask = CWBorderPixel|CWColormap;
#else
XVisualInfo* vi = (XVisualInfo*)malloc(sizeof(XVisualInfo));
vi->screen = DefaultScreen((Display*)win->src.display);
vi->visual = DefaultVisual((Display*)win->src.display, vi->screen);

i8 depth = 0;
vi->depth = 0;
u32 valuemask = 0;
#endif

Expand All @@ -1794,7 +1793,7 @@ RGFW_window* RGFW_createWindow(const char* name, RGFW_rect rect, u16 args) {

/* create the window*/
win->src.window = XCreateWindow((Display *)win->src.display, RootWindow((Display *)win->src.display, vi->screen), win->r.x, win->r.y, win->r.w, win->r.h,
0, depth, InputOutput, vi->visual,
0, vi->depth, InputOutput, vi->visual,
valuemask|CWEventMask, &swa);


Expand Down

0 comments on commit 7f24e21

Please sign in to comment.