diff options
author | stanley lieber <stanley.lieber@gmail.com> | 2020-04-25 21:55:43 -0400 |
---|---|---|
committer | stanley lieber <stanley.lieber@gmail.com> | 2020-04-25 21:55:43 -0400 |
commit | 2614fa02f727daa957ea7e9cc38df108de27c210 (patch) | |
tree | 9e21203ed37ab552a14c74dace83d14380b061b8 /sys/src/cmd | |
parent | 9a7c5d56539b94a10ce75e63113b2d351e55e143 (diff) |
mothra: make user interface monochrome
Diffstat (limited to 'sys/src/cmd')
-rw-r--r-- | sys/src/cmd/mothra/libpanel/draw.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/src/cmd/mothra/libpanel/draw.c b/sys/src/cmd/mothra/libpanel/draw.c index 9ae0cb929..8ea2b7dcf 100644 --- a/sys/src/cmd/mothra/libpanel/draw.c +++ b/sys/src/cmd/mothra/libpanel/draw.c @@ -17,9 +17,10 @@ static int plldepth; static Image *pl_white, *pl_light, *pl_dark, *pl_black, *pl_hilit; int pl_drawinit(int ldepth){ plldepth=ldepth; + /* mono */ pl_white=allocimage(display, Rect(0,0,1,1), screen->chan, 1, 0xFFFFFFFF); - pl_light=allocimagemix(display, DPalebluegreen, DWhite); - pl_dark=allocimage(display, Rect(0,0,1,1), screen->chan, 1, DPurpleblue); + 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, 0x555555FF); 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); if(pl_white==0 || pl_light==0 || pl_black==0 || pl_dark==0) return 0; |