Files
nethack/sys/windows
nhmall 15db874f71 CHANGE_COLOR palette option adjustments
It was too early to call the windowport change_color() routine
while processing the config file. The windowport was not yet
fully operational.

Now the palette option processing will just place the rgb
value into the appropriate ga.altpalette[CLR_MAX] entry.

init_sound_disp_gamewindows(void) [allmain.c] calls
change_palette() [coloratt.c] and it will call the windowport
change_color() function for each ga.altpalette[] entry that
has been set.

Notes:
The rgb values stored in ga.altpalette[] have the NH_ALTPALETTE bit set
so that the rgb value of 0 can be stored and be distinguishable from
a "not set" entry.

The NH_ALTPALETTE bit is cleared from the rgb value in change_palette()
prior to calling the windowport change_color() function.

The syntax for palette is colorname/r-g-b.
For example: palette:black/12-12-12

colorname must be one of the NH_BASIC_COLOR names or a suitable
alias for one of those 16 entries.

Some of the windowport CHANGE_COLOR functions had the wrong parameters,
perhaps due to bitrot. Those have been corrected to match the prototype.
2024-04-12 21:57:27 -04:00
..
2024-03-28 10:09:59 -04:00
2024-03-27 16:20:06 -04:00
2024-03-27 16:20:06 -04:00
2023-05-29 22:39:43 -04:00
2024-02-28 20:15:56 -08:00
2022-10-26 14:21:23 -04:00
2022-12-05 23:19:38 -05:00
2024-02-28 20:15:56 -08:00
2024-03-25 22:30:08 -04:00
2024-03-20 11:49:24 -04:00
2022-10-16 21:42:18 -04:00