ref: 6f5e6eff590d3e8b7303bbd5591e505b355a7b79
parent: 569e0181b2664032b83376eeafbc7900bb54ce44
author: cinap_lenrek <[email protected]>
date: Tue Oct 4 22:18:23 EDT 2011
page: fix draw performance problem on t23
--- a/sys/src/cmd/page.c
+++ b/sys/src/cmd/page.c
@@ -936,7 +936,7 @@
Point a;
if(f <= 1){
- gendrawdiff(d, r, top, s, sp, nil, ZP, S);
+ gendrawdiff(d, r, top, s, sp, nil, ZP, SoverD);
return;
}
a = ZP;
@@ -966,7 +966,7 @@
}
sp = r.min;
for(x=r.min.x; x<r.max.x; x++){
- gendrawdiff(d, Rect(x, r.min.y, x+1, r.max.y), top, t, sp, nil, ZP, S);
+ gendrawdiff(d, Rect(x, r.min.y, x+1, r.max.y), top, t, sp, nil, ZP, SoverD);
if(++a.x == f){
a.x = 0;
sp.x++;
@@ -1002,7 +1002,7 @@
r = rectaddpt(Rpt(ZP, pagesize(p)), addpt(pos, screen->r.min));
zoomdraw(screen, r, ZR, i, i->r.min, zoom);
}
- gendrawdiff(screen, screen->r, r, background, ZP, nil, ZP, S);
+ gendrawdiff(screen, screen->r, r, background, ZP, nil, ZP, SoverD);
border(screen, r, -Borderwidth, display->black, ZP);
flushimage(display, 1);
}
@@ -1023,7 +1023,7 @@
rectclip(&or, screen->r);
draw(screen, rectaddpt(or, d), screen, nil, or.min);
zoomdraw(screen, nr, rectaddpt(or, d), i, i->r.min, zoom);
- gendrawdiff(screen, screen->r, nr, background, ZP, nil, ZP, S);
+ gendrawdiff(screen, screen->r, nr, background, ZP, nil, ZP, SoverD);
border(screen, nr, -Borderwidth, display->black, ZP);
flushimage(display, 1);
}