Files
nethack/include
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-03-13 13:58:56 -07:00
2022-11-29 21:53:21 -05:00
2024-02-28 11:47:16 -08:00
2023-05-22 20:50:35 -04:00
2024-03-24 10:27:42 -04:00
2022-06-30 23:48:18 -04:00
2024-04-12 21:57:27 -04:00
2024-02-16 14:14:05 -08:00
2023-03-01 14:00:29 +02:00
2024-04-04 23:22:28 +03:00
2021-01-26 21:06:16 -05:00
2024-03-07 11:01:04 -05:00
2023-05-04 06:02:23 -07:00
2023-05-22 14:43:01 -07:00
2024-03-07 15:50:05 -05:00
2024-03-07 11:01:04 -05:00
2024-02-28 20:15:56 -08:00
2022-03-11 07:33:28 -05:00
2022-06-19 02:30:45 -07:00
2023-12-09 12:43:41 +02:00
2022-11-29 21:53:21 -05:00
2024-02-28 20:15:56 -08:00
2023-02-25 07:02:19 -08:00
2024-02-24 13:49:51 -08:00
2024-02-28 20:15:56 -08:00
2024-02-28 20:15:56 -08:00
2024-04-04 23:22:28 +03:00
2023-11-22 16:01:58 -05:00
2022-10-26 14:21:23 -04:00
2022-10-26 14:21:23 -04:00
2022-10-26 14:21:23 -04:00
2024-02-28 20:15:56 -08:00
2023-10-16 09:11:05 -04:00
2024-03-07 11:01:04 -05:00
2024-02-28 20:15:56 -08:00
2023-02-25 18:05:09 +02:00
2022-11-29 21:53:21 -05:00
2024-03-07 11:01:04 -05:00
2024-04-04 06:44:23 -07:00
2023-11-22 16:01:58 -05:00
2020-08-12 16:15:28 -07:00
2024-01-12 14:17:50 -08:00
2024-01-28 01:13:08 -08:00
2024-03-23 10:11:35 -07:00
2022-11-29 21:53:21 -05:00
2023-11-22 16:01:58 -05:00
2022-06-30 23:48:18 -04:00
2024-04-02 14:31:33 +03:00
2024-03-24 23:47:24 -04:00
2022-10-26 14:21:23 -04:00
2022-10-26 14:21:23 -04:00
2024-04-04 23:22:28 +03:00