ref: 8f211091301af3a465be701bfdfecf049733dc20
parent: 37ee82550c127b30ed48ef95cd2a072cfaaf80c3
author: qwx <[email protected]>
date: Wed Jun 12 22:16:21 EDT 2024
page: fix screwed up display when transparency is present
--- a/sys/src/cmd/page.c
+++ b/sys/src/cmd/page.c
@@ -52,7 +52,6 @@
enum{
Cground,
- Cpaper,
Cframe,
Ctext,
Ncols,
@@ -1239,7 +1238,7 @@
if((i = p->image) != nil){
r = rectaddpt(Rpt(ZP, pagesize(p)), addpt(pos, screen->r.min));
- zoomdraw(screen, r, ZR, cols[Cpaper], i, i->r.min, zoom);
+ zoomdraw(screen, r, ZR, display->white, i, i->r.min, zoom);
} else {
r = Rpt(ZP, stringsize(font, p->name));
r = rectaddpt(r, addpt(subpt(divpt(subpt(screen->r.max, screen->r.min), 2),
@@ -1266,7 +1265,7 @@
draw(screen, rectaddpt(r, d), screen, nil, r.min);
else
r = ZR;
- zoomdraw(screen, nr, rectaddpt(r, d), cols[Cpaper], i, i->r.min, zoom);
+ zoomdraw(screen, nr, rectaddpt(r, d), display->white, i, i->r.min, zoom);
drawframe(nr);
}
@@ -1805,7 +1804,6 @@
sysfatal("initdraw: %r");
Theme th[nelem(cols)] = {
[Cground] { "back", 0x777777FF },
- [Cpaper] { "paper", DWhite },
[Cframe] { "border", DBlack },
[Ctext] { "text", DBlack },
};