From 86cb8dba6059fd2048dccc9e6db8ce639253afff Mon Sep 17 00:00:00 2001 From: nhmall Date: Sat, 13 Apr 2024 12:09:45 -0400 Subject: [PATCH] use COLORVAL macro in change_palette() --- src/coloratt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coloratt.c b/src/coloratt.c index 96bb06294..ef0407327 100644 --- a/src/coloratt.c +++ b/src/coloratt.c @@ -1092,7 +1092,7 @@ change_palette(void) for (clridx = 0; clridx < CLR_MAX; ++clridx) { if (ga.altpalette[clridx] != 0) { - long rgb = (long) (ga.altpalette[clridx] & ~NH_ALTPALETTE); + long rgb = (long) COLORVAL(ga.altpalette[clridx]); (*windowprocs.win_change_color)(clridx, rgb, 0); } }