ref: d8e653b95a6df550c71616ac69a21ab352dfc9ff
parent: 58d79939a16c2de700aa081cf51ae79dff5643de
author: Sigrid Haflínudóttir <[email protected]>
date: Thu May 14 13:16:20 EDT 2020
turn "dark enough" to black and vice versa
--- a/tocursor.c
+++ b/tocursor.c
@@ -21,10 +21,12 @@
print("Cursor lol = {\n");
print("\t{%s, %s},\n", argv[1], argv[2]);
for (i = 0; i < nelem(b); i++) {
- if (b[15+i] == 0x000000ff)
- set[i/8] |= 1<<(7-i&7);
- else if (b[15+i] == 0xffffffff)
- clr[i/8] |= 1<<(7-i&7);
+ if (b[15+1] & 0xff){
+ if (b[15+i] < 0x4f4f4fff)
+ set[i/8] |= 1<<(7-i&7);
+ else
+ clr[i/8] |= 1<<(7-i&7);
+ }
}
print("\t{");
for (i = 0; i < sizeof(clr); i++) {