Files
nethack/sys/amiga
nhmall 42a13a1198 has_color() performance fixes
Performance profiling showed that multiple strcmpi() calls were
occurring each and every time a character was going to the map.

This update:
- honors the WC_COLOR capability
- It allows a window-port to control individual color availability should the window-port wish to do so.
- Makes checking on the individual colors for the active window-port is a straightforward table lookup at the CLR_ offset.

iflags.use_color remains a master on/off switch for use of color, regardless of the capability
compiled into the game (default TRUE).

The has_color() routine, which is now a shared routine in src/windows.c, could likely be made
into a simple macro to eliminate the function call, but this update does not go that far.

This hits a lot of port files due to the window-port interface change, mostly cookie-cutter.
2019-11-30 11:44:07 -05:00
..
2018-11-11 10:29:52 -05:00
2015-05-25 09:21:31 +09:00
2002-01-05 21:05:54 +00:00
2002-01-05 21:05:54 +00:00
2015-05-25 09:21:31 +09:00
2015-05-06 22:04:27 -04:00
2015-05-25 09:21:31 +09:00
2015-12-18 07:42:23 -08:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2015-05-06 22:04:27 -04:00
2015-05-09 13:43:16 -04:00
2015-05-09 13:43:16 -04:00
2015-05-25 09:21:31 +09:00
2002-01-05 21:05:54 +00:00
2015-05-25 09:21:31 +09:00
2015-05-06 22:04:27 -04:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2019-11-30 11:44:07 -05:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2019-02-04 18:35:17 -05:00
2015-05-25 09:21:31 +09:00