Unified · Split
| @@ -312,8 +312,12 @@ threadmain(int argc, char **argv) · 311 unmodified lines | |||
| 312 | sysfatal("initkeyboard: %r"); | 312 | sysfatal("initkeyboard: %r"); |
| 313 | 313 | ||
| 314 | cback = allocimage(display, Rect(0,0,1,1), RGB24, 1, brgb); | 314 | cback = allocimage(display, Rect(0,0,1,1), RGB24, 1, brgb); |
| 315 | brgb = ~(brgb>>8 | brgb>>16 | brgb>>24); | 315 | if(brgb == DPalegreygreen) |
| 316 | brgb = brgb<<8 | brgb<<16 | brgb<<24 | 0xff; | 316 | brgb = DBlack; |
| 317 | else{ /* dunno, just invert */ | ||
| 318 | brgb = ~(brgb>>8 | brgb>>16 | brgb>>24); | ||
| 319 | brgb = brgb<<8 | brgb<<16 | brgb<<24 | 0xff; | ||
| 320 | } | ||
| 317 | ctext = allocimage(display, Rect(0,0,1,1), RGB24, 1, brgb); | 321 | ctext = allocimage(display, Rect(0,0,1,1), RGB24, 1, brgb); |
| 318 | 322 | ||
| 319 | a[Emouse].c = mctl->c; | 323 | a[Emouse].c = mctl->c; |