From: John DeGood <john@degood.org>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] mickey clock
Date: Sun, 23 Dec 2007 23:26:22 -0500 [thread overview]
Message-ID: <476F34EE.5020601@degood.org> (raw)
In-Reply-To: <457185a9de51578702bfcce13c39ff09@quanstro.net>
All mclock users, please update to new (hopefully final) version:
http://degood.org/plan9/mclock.tar
Changes:
- new improved mouth, added tongue
- moved update optimization from redraw() to event loop
- fixed typo in window label
Thanks to Erik for discovering the bugs.
John
erik quanstrom wrote:
> mclock really is the bomb. it's become pretty popular at coraid.
> someone noticed if mclock is unhiden, it doesn't redraw. i believe
> this patch corrects the problem.
>
> - erik
>
> ; diff -c mclock.c `{yesterday mclock.c}
> mclock.c:190,195 - /n/dump/2007/1221/sys/src/games/mclock/mclock.c:190,198
> newtime = time(0);
> tm = *localtime(newtime);
>
> + if(tm.min == m && eqrect(screen->r, r))
> + return;
> +
> anghr = (tm.hour*5+(tm.min+6)/12)*6;
> angmin = tm.min*6;
> m = tm.min;
> mclock.c:275,281 - /n/dump/2007/1221/sys/src/games/mclock/mclock.c:278,284
> char *mstr[] = {"exit", 0};
> int key, timer;
>
> - initdraw(0, 0,"mclock");
> + initdraw(0,0,"clock");
> back = allocimagemix(display, DPalebluegreen, DWhite);
>
> dots = allocimage(display, Rect(0,0,1,1), CMAP8, 1, DBlue);
>
>
next prev parent reply other threads:[~2007-12-24 4:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-21 17:47 erik quanstrom
2007-12-24 4:26 ` John DeGood [this message]
2008-01-05 2:30 ` david bulkow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=476F34EE.5020601@degood.org \
--to=john@degood.org \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).