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
2019-11-27 09:53:40 -08:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2018-04-25 15:00:13 -04:00
2019-07-28 15:06:02 -07:00
2016-10-10 16:18:20 +03:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:15 +09:00
2019-04-06 15:53:51 -07:00
2015-10-17 13:15:46 +03:00
2019-04-19 12:42:35 -07:00
2019-07-14 21:28:55 -07:00
2018-04-25 15:00:13 -04:00
2018-04-25 15:00:13 -04:00
2019-11-15 17:51:20 -08:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2019-06-08 04:50:40 -07:00
2019-05-12 14:51:26 -04:00
2019-11-17 19:13:23 -05:00
2018-04-25 15:00:13 -04:00
2019-11-29 11:14:55 -05:00
2019-11-27 16:27:13 -08:00
2018-12-15 19:31:42 -05:00
2015-05-25 09:21:15 +09:00
2019-11-17 20:06:21 -05:00
2019-11-16 22:49:36 -05:00
2019-03-06 11:37:52 -08:00
2019-01-28 10:02:08 +01:00
2018-04-25 15:00:13 -04:00
2018-04-25 16:54:50 -04:00
2015-05-25 09:21:15 +09:00
2018-04-25 15:00:13 -04:00
2018-04-25 15:00:13 -04:00
2018-04-25 15:00:13 -04:00
2018-04-25 15:00:13 -04:00
2015-10-17 13:15:46 +03:00
2015-11-17 02:26:17 -08:00
2018-04-25 15:00:13 -04:00
2018-04-25 16:54:50 -04:00
2019-11-25 15:01:40 -08:00
2018-04-25 15:00:13 -04:00
2018-04-25 16:54:50 -04:00
2019-06-18 02:43:41 -07:00
2015-05-25 09:21:31 +09:00
2019-02-26 19:49:24 -05:00
2015-05-25 09:21:31 +09:00
2019-06-20 10:59:48 -07:00
2019-01-13 17:19:39 -08:00
2015-05-25 09:21:31 +09:00
2019-11-02 19:11:26 -07:00
2018-04-25 15:00:13 -04:00
2019-01-11 17:18:48 -08:00
2019-01-28 10:02:09 +01:00
2019-11-07 10:59:20 -05:00
2019-11-02 18:17:10 -07:00
2018-10-20 23:14:33 -04:00
2019-10-08 13:26:39 -07:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2015-11-17 02:26:17 -08:00
2017-10-10 21:47:35 +03:00
2017-09-11 15:59:50 -07:00
2018-04-25 15:36:11 -04:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2015-10-17 18:47:31 +03:00
2019-11-16 14:31:57 -08:00
2019-01-11 17:18:48 -08:00
2018-12-15 19:27:08 -08:00
2015-05-25 09:21:31 +09:00
2019-10-27 23:12:11 -04:00
2019-02-15 14:10:09 -08:00
2018-04-25 15:00:13 -04:00
2018-04-25 16:54:50 -04:00
2016-03-05 14:44:50 -05:00
2019-07-27 16:12:24 -07:00
2018-04-25 15:00:13 -04:00
2019-04-15 13:48:27 -07:00
2015-06-08 19:37:26 -04:00
2019-01-11 17:18:48 -08:00
2019-07-14 21:28:55 -07:00
2019-06-08 04:50:40 -07:00
2019-04-15 13:48:27 -07:00
2019-01-28 10:02:09 +01:00
2015-05-25 09:21:31 +09:00
2019-10-16 15:52:00 -07:00
2015-06-08 19:37:26 -04:00
2015-05-25 09:21:31 +09:00
2019-11-30 11:44:07 -05:00
2019-10-05 16:49:34 -07:00
2019-02-04 16:46:04 -08:00
2018-11-30 15:26:38 +02:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2019-01-14 17:10:46 -08:00
2019-09-18 11:37:11 -07:00