use COLORVAL macro in change_palette()

This commit is contained in:
nhmall
2024-04-13 12:09:45 -04:00
parent c30dbb2caa
commit 86cb8dba60
+1 -1
View File
@@ -1092,7 +1092,7 @@ change_palette(void)
for (clridx = 0; clridx < CLR_MAX; ++clridx) { for (clridx = 0; clridx < CLR_MAX; ++clridx) {
if (ga.altpalette[clridx] != 0) { 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); (*windowprocs.win_change_color)(clridx, rgb, 0);
} }
} }