summaryrefslogtreecommitdiff
path: root/sys/src/cmd/rio/scrl.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2012-10-20 15:51:32 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2012-10-20 15:51:32 +0200
commit8057e48ae19db2f26f109aa3eb76c047b900e6ba (patch)
treecc9aa6d19fa35d28e7261b513a583eaf9b0a7835 /sys/src/cmd/rio/scrl.c
parentc33732a5305270321beccbd3e1b44881cd2e0004 (diff)
rio: colors, flicker reduction, refresh after mouse close
allocate all the colors in iconinit(), remove unused ones like grey. rename darkgrey to paletextcol because thats what it is used for. new approach to window image allocation. we allocate the window with DNofill and let the window fill itself. this reduces flickering especially with (-b) option and makes rio resize feel a lot faster. wrefresh() didnt work. now fixed.
Diffstat (limited to 'sys/src/cmd/rio/scrl.c')
-rw-r--r--sys/src/cmd/rio/scrl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/rio/scrl.c b/sys/src/cmd/rio/scrl.c
index 47480ac90..4edbd66e4 100644
--- a/sys/src/cmd/rio/scrl.c
+++ b/sys/src/cmd/rio/scrl.c
@@ -21,7 +21,7 @@ scrtemps(void)
if(scrtmp)
return;
h = BIG*Dy(screen->r);
- scrtmp = allocimage(display, Rect(0, 0, 32, h), screen->chan, 0, DWhite);
+ scrtmp = allocimage(display, Rect(0, 0, 32, h), screen->chan, 0, DNofill);
if(scrtmp == nil)
error("scrtemps");
}
@@ -70,7 +70,7 @@ wscrdraw(Window *w)
scrtemps();
if(w->i == nil)
- error("scrdraw");
+ return;
r = w->scrollr;
b = scrtmp;
r1 = r;