diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-10-20 15:51:32 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-10-20 15:51:32 +0200 |
commit | 8057e48ae19db2f26f109aa3eb76c047b900e6ba (patch) | |
tree | cc9aa6d19fa35d28e7261b513a583eaf9b0a7835 /sys/src/cmd/rio/wctl.c | |
parent | c33732a5305270321beccbd3e1b44881cd2e0004 (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/wctl.c')
-rw-r--r-- | sys/src/cmd/rio/wctl.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/src/cmd/rio/wctl.c b/sys/src/cmd/rio/wctl.c index 557e9e84d..efe6949ff 100644 --- a/sys/src/cmd/rio/wctl.c +++ b/sys/src/cmd/rio/wctl.c @@ -330,14 +330,13 @@ wctlnew(Rectangle rect, char *arg, int pid, int hideit, int scrollit, char *dir, argv[3] = nil; } if(hideit) - i = allocimage(display, rect, screen->chan, 0, DWhite); + i = allocimage(display, rect, screen->chan, 0, DNofill); else - i = allocwindow(wscreen, rect, Refbackup, DWhite); + i = allocwindow(wscreen, rect, Refbackup, DNofill); if(i == nil){ strcpy(err, Ewalloc); return -1; } - border(i, rect, Selborder, red, ZP); new(i, hideit, scrollit, pid, dir, "/bin/rc", argv); @@ -366,12 +365,11 @@ wctlcmd(Window *w, Rectangle r, int cmd, char *err) } if(eqrect(r, w->screenr)) return 1; - i = allocwindow(wscreen, r, Refbackup, DWhite); + i = allocwindow(wscreen, r, Refbackup, DNofill); if(i == nil){ strcpy(err, Ewalloc); return -1; } - border(i, r, Selborder, red, ZP); wsendctlmesg(w, Reshaped, i->r, i); return 1; case Scroll: |