summaryrefslogtreecommitdiff
path: root/sys/src/cmd/mothra/getpix.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@centraldogma>2012-01-01 16:59:42 +0100
committercinap_lenrek <cinap_lenrek@centraldogma>2012-01-01 16:59:42 +0100
commit31109f5047f04a3ab0a9a9b78910ef1c193e3e6f (patch)
treed5b87280a10ef837535419583ec522ff1c170409 /sys/src/cmd/mothra/getpix.c
parentd09c46c352ca2595454c54b8d30aea1f0a0f6607 (diff)
mothra: allow plmouse() to update mouse state, use a pipe to signal screen update
Diffstat (limited to 'sys/src/cmd/mothra/getpix.c')
-rw-r--r--sys/src/cmd/mothra/getpix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/src/cmd/mothra/getpix.c b/sys/src/cmd/mothra/getpix.c
index d82957c3c..d966de53c 100644
--- a/sys/src/cmd/mothra/getpix.c
+++ b/sys/src/cmd/mothra/getpix.c
@@ -35,7 +35,7 @@ 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;
- w->changed=1;
+ update(w);
return;
}
fd=urlopen(&url, GET, 0);
@@ -44,7 +44,7 @@ void getimage(Rtext *t, Www *w){
snprint(err, sizeof(err), "[%s: %r]", url.fullname);
free(t->text);
t->text=strdup(err);
- w->changed=1;
+ update(w);
close(fd);
return;
}
@@ -82,7 +82,7 @@ void getimage(Rtext *t, Www *w){
p->next=w->pix;
w->pix=p;
t->b=b;
- w->changed=1;
+ update(w);
}
void getpix(Rtext *t, Www *w){