Add MG_BW_LAVA to mapglyph() instead of hijacking MG_DETECT. Used to display lava in inverse video if color is disabled and lava is using the same display character as water (which is the default). (The use_inverse option must be enabled for tty to honor it. X11's text mode doesn't care. Win32 does care but probably shouldn't--it's not a case like tty where the hardware might not support it.) This implements both MG_DETECT and MG_BW_LAVA for X11, but only if the program is built with TEXTCOLOR enabled. Those should work even when color is not supported, but I suspect that configuration is unlikely to ever be used so didn't want to spend the time to figure out how to do it. (The relevant data is overloaded on the color data, so not available when TEXTCOLOR is disabled.) The win32 revision is untested.
15 KiB
15 KiB