1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-06-16 13:24:08 +00:00

black displayed better

This commit is contained in:
Zeno Rogue 2017-12-22 00:51:55 +01:00
parent d32232d9cb
commit db9bb39662

View File

@ -100,6 +100,12 @@ namespace dialog {
addSelItem(body, ONOFF(value), key);
}
int displaycolor(int col) {
int c = col >> 8;
if(!c) return 0x181818;
return c;
}
void addColorItem(string body, int value, int key) {
item it;
it.type = diItem;
@ -107,7 +113,7 @@ namespace dialog {
it.value = COLORBAR;
it.keycaption = keyname(key);
it.key = key;
it.color = it.colorv = value >> 8;
it.color = it.colorv = displaycolor(value);
it.colors = it.color ^ 0x404040;
it.colorc = it.color ^ 0x808080;
it.colork = 0x808080;