mothra: make user interface monochrome

This commit is contained in:
stanley lieber 2020-04-25 21:55:43 -04:00
parent 9a7c5d5653
commit 2614fa02f7

View file

@ -17,9 +17,10 @@ static int plldepth;
static Image *pl_white, *pl_light, *pl_dark, *pl_black, *pl_hilit; static Image *pl_white, *pl_light, *pl_dark, *pl_black, *pl_hilit;
int pl_drawinit(int ldepth){ int pl_drawinit(int ldepth){
plldepth=ldepth; plldepth=ldepth;
/* mono */
pl_white=allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0xFFFFFFFF); pl_white=allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0xFFFFFFFF);
pl_light=allocimagemix(display, DPalebluegreen, DWhite); pl_light=allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0xFFFFFFFF);
pl_dark=allocimage(display, Rect(0,0,1,1), screen->chan, 1, DPurpleblue); pl_dark=allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0x555555FF);
pl_black=allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0x000000FF); pl_black=allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0x000000FF);
pl_hilit=allocimage(display, Rect(0,0,1,1), CHAN1(CAlpha,8), 1, 0x80); pl_hilit=allocimage(display, Rect(0,0,1,1), CHAN1(CAlpha,8), 1, 0x80);
if(pl_white==0 || pl_light==0 || pl_black==0 || pl_dark==0) return 0; if(pl_white==0 || pl_light==0 || pl_black==0 || pl_dark==0) return 0;