X11: strip extra bits off color when used as index

This commit is contained in:
nhmall
2025-06-29 13:31:02 -04:00
parent 34b42d2354
commit 459a339a95

View File

@@ -1567,8 +1567,8 @@ X11_make_gc(
}
ggc = (iflags.use_color
? (cur_inv
? text_map->inv_color_gcs[color]
: text_map->color_gcs[color])
? text_map->inv_color_gcs[COLORVAL(color)]
: text_map->color_gcs[COLORVAL(color)])
: (cur_inv
? text_map->inv_copy_gc
: text_map->copy_gc));