shithub: tocursor

Download patch

ref: aa515b1b5b5071884815b1e22bb01ade901d8c03
parent: d8e653b95a6df550c71616ac69a21ab352dfc9ff
author: Sigrid Haflínudóttir <[email protected]>
date: Thu May 14 13:25:35 EDT 2020

Revert "turn "dark enough" to black and vice versa"

This reverts commit d8e653b95a6df550c71616ac69a21ab352dfc9ff.

--- a/tocursor.c
+++ b/tocursor.c
@@ -21,12 +21,10 @@
 	print("Cursor lol = {\n");
 	print("\t{%s, %s},\n", argv[1], argv[2]);
 	for (i = 0; i < nelem(b); i++) {
-		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);
-		}
+		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);
 	}
 	print("\t{");
 	for (i = 0; i < sizeof(clr); i++) {