commit 36480ba
ohmu
·
2026-09-23 21:31:42 +0300 MSK
parent f8c5ad2
fix: coolscrlbg 1 now supports pastel
1 files changed,
+14,
-5
M
acme.c
M
acme.c
+14,
-5
1@@ -1033,11 +1033,20 @@ iconinit(void)
2 textcols[HIGH] = allocimage(display, Rect(0,0,1,1), RGBA32, 1, C_TXTHLBG);
3
4 if(coolscrollbg == 1) {
5- tmp = allocimage(display, Rect(0,0,1,1), RGBA32, 1, C_SCROLLTILEFG);
6- textcols[BORD] = allocimage(display, Rect(0,0,2,2), RGBA32, 1, C_SCROLLTILEBG);
7- draw(textcols[BORD], Rect(1,1,2,2), tmp, nil, ZP);
8- draw(textcols[BORD], Rect(0,0,1,1), tmp, nil, ZP);
9- }else if(coolscrollbg == 0){
10+ if(ispastel("coolscrlfg"))
11+ tmp = allocimagemix(display, C_SCROLLTILEFG, C_MIX);
12+ else
13+ tmp = allocimage(display, Rect(0,0,1,1), RGBA32, 1, C_SCROLLTILEFG);
14+
15+ if(ispastel("coolscrlbg"))
16+ textcols[BORD] = allocimagemix(display, C_SCROLLTILEBG, C_MIX);
17+ else
18+ textcols[BORD] = allocimage(display, Rect(0,0,2,2), RGBA32, 1, C_SCROLLTILEBG);
19+
20+ draw(textcols[BORD], Rect(1,1,2,2), tmp, nil, ZP);
21+ draw(textcols[BORD], Rect(0,0,1,1), tmp, nil, ZP);
22+ freeimage(tmp);
23+ }else if(coolscrollbg == 0){
24 if(ispastel("scrlbg"))
25 textcols[BORD] = allocimagemix(display, C_SCROLLBG, C_MIX);
26 else