summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/games/catclock.c2
-rw-r--r--sys/src/games/juggle.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/games/catclock.c b/sys/src/games/catclock.c
index a581bc54d..01faba297 100644
--- a/sys/src/games/catclock.c
+++ b/sys/src/games/catclock.c
@@ -118,7 +118,7 @@ void main(int argc, char *argv[]){
eye[i]=draweye(i*PI/NTAIL);
}
for(;;){
- if(ecanmouse()) emouse(); /* don't get resize events without this! */
+ while(ecanmouse()) emouse(); /* don't get resize events without this! */
drawclock();
flushimage(display, 1);
// bflush();
diff --git a/sys/src/games/juggle.c b/sys/src/games/juggle.c
index 01dea4146..f3971b51d 100644
--- a/sys/src/games/juggle.c
+++ b/sys/src/games/juggle.c
@@ -76,7 +76,7 @@ Point bpos(int b, int step, int t){
void move(int t){
int i, j;
for(i=0;i!=NSTEP;i++){
- if(ecanmouse()) emouse();
+ while(ecanmouse()) emouse();
draw(image, inset(image->r, 3), display->white, nil, ZP);
for(j=0;j!=nball;j++)
fillellipse(image, bpos(j, i, t), RBALL, RBALL, disk[j%ndisk], ZP);