Files
nethack/win/win32
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
..
2022-02-04 11:01:20 -05:00
2022-10-26 14:21:23 -04:00
2024-02-28 20:15:56 -08:00
2024-02-28 20:15:56 -08:00
2022-11-29 21:53:21 -05:00
2021-01-29 13:00:00 -05:00
2024-02-28 20:15:56 -08:00
2024-02-28 20:15:56 -08:00
2024-02-28 20:15:56 -08:00
2023-12-27 14:56:03 -05:00
2022-10-26 14:21:23 -04:00
2015-05-25 09:21:31 +09:00
2024-02-28 20:15:56 -08:00
2024-02-28 20:15:56 -08:00
2002-03-24 23:57:19 +00:00
2002-03-24 23:57:19 +00:00
2002-03-24 23:57:19 +00:00
2021-01-01 22:07:54 -05:00
2024-02-28 20:15:56 -08:00
2015-06-14 19:27:28 -04:00
2002-03-03 16:51:46 +00:00
2018-04-25 16:54:50 -04:00