summaryrefslogtreecommitdiff
path: root/sys/src/cmd/mothra/getpix.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2012-07-20 14:32:50 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2012-07-20 14:32:50 +0200
commit98d5687ce47dc3cb014d5c3cb951e05dfe9e9da5 (patch)
tree60426055aa98f7570e2d3c5a856f53df7a83a849 /sys/src/cmd/mothra/getpix.c
parent3707561e047f8e7c9993e0ba5a3a3fb5b5f6a6fd (diff)
mothra: delayed screen updates to reduce flicker
Diffstat (limited to 'sys/src/cmd/mothra/getpix.c')
-rw-r--r--sys/src/cmd/mothra/getpix.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/src/cmd/mothra/getpix.c b/sys/src/cmd/mothra/getpix.c
index 762b69fb0..d3896e159 100644
--- a/sys/src/cmd/mothra/getpix.c
+++ b/sys/src/cmd/mothra/getpix.c
@@ -36,16 +36,16 @@ void getimage(Rtext *t, Www *w){
for(p=w->pix;p!=nil; p=p->next)
if(strcmp(ap->image, p->name)==0 && ap->width==p->width && ap->height==p->height){
t->b = p->b;
- update(w);
+ w->changed=1;
return;
}
fd=urlget(&url, -1);
if(fd==-1){
Err:
- snprint(err, sizeof(err), "[%s: %r]", url.fullname);
+ snprint(err, sizeof(err), "[img: %s: %r]", url.reltext);
free(t->text);
t->text=strdup(err);
- update(w);
+ w->changed=1;
close(fd);
return;
}
@@ -83,7 +83,7 @@ void getimage(Rtext *t, Www *w){
p->next=w->pix;
w->pix=p;
t->b=b;
- update(w);
+ w->changed=1;
}
void getpix(Rtext *t, Www *w){