use COLORVAL macro in change_palette()
This commit is contained in:
+1
-1
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user