From 6a411cf37a8166cf43ce7d08107c9ea8b3f308ef Mon Sep 17 00:00:00 2001 From: BatteryShark Date: Thu, 2 Mar 2023 00:25:25 -0500 Subject: [PATCH] bugfix due to stupidity on my end --- src/main/hook/patch/gfx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/hook/patch/gfx.c b/src/main/hook/patch/gfx.c index 9c2f1dc..765826d 100644 --- a/src/main/hook/patch/gfx.c +++ b/src/main/hook/patch/gfx.c @@ -82,7 +82,7 @@ Window XCreateWindow( // Eventually, this was brought back, but it's suspected that NVIDIA cards, drivers at the time, or // perhaps even a combination of that and X11 supported querying the gpu itself for a colormap. // Either way, this no longer works consistently and we need to account for that. - if (valuemask & CWColormap == 0) { + if ((valuemask & CWColormap) == 0) { log_info("Adding CWColorMap to ValueMask for Non-NVIDIA Cards."); /* enables usage of nvidia cards where hardware colormaps are not available or supported */ valuemask |= CWColormap;