summaryrefslogtreecommitdiff
path: root/sys/src/cmd/rio/xfid.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/xfid.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/xfid.c')
-rw-r--r--sys/src/cmd/rio/xfid.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/src/cmd/rio/xfid.c b/sys/src/cmd/rio/xfid.c
index c9e4eb974..cc4edee92 100644
--- a/sys/src/cmd/rio/xfid.c
+++ b/sys/src/cmd/rio/xfid.c
@@ -183,11 +183,10 @@ xfidattach(Xfid *x)
err = Ebadrect;
else{
if(hideit)
- i = allocimage(display, r, screen->chan, 0, DWhite);
+ i = allocimage(display, r, screen->chan, 0, DNofill);
else
- i = allocwindow(wscreen, r, Refbackup, DWhite);
+ i = allocwindow(wscreen, r, Refbackup, DNofill);
if(i){
- border(i, r, Selborder, display->black, ZP);
if(pid == 0)
pid = -1; /* make sure we don't pop a shell! - UGH */
w = new(i, hideit, scrollit, pid, nil, nil, nil);