From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <2d5a784f0801041830u289be06ev52a59460454d1c57@mail.gmail.com> Date: Fri, 4 Jan 2008 21:30:09 -0500 From: "david bulkow" To: nu3e@arrl.net, "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] mickey clock In-Reply-To: <476F34EE.5020601@degood.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1589_5707329.1199500209103" References: <457185a9de51578702bfcce13c39ff09@quanstro.net> <476F34EE.5020601@degood.org> Cc: Topicbox-Message-UUID: 27a2dfca-ead3-11e9-9d60-3106f5b1d025 ------=_Part_1589_5707329.1199500209103 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline John, I cooked up a mkfile for use with p9p. Thank you for the new clock! -dbul- On Dec 23, 2007 11:26 PM, John DeGood wrote: > 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); > > > > > > ------=_Part_1589_5707329.1199500209103 Content-Type: application/octet-stream; name=mkfile Content-Transfer-Encoding: base64 X-Attachment-Id: f_fb1jearm0 Content-Disposition: attachment; filename=mkfile PCRQTEFOOS9zcmMvbWtoZHIKClRBUkc9bWNsb2NrCgpPRklMRVM9XAoJbWNsb2NrLiRPCgo8JFBM QU45L3NyYy9ta29uZQo= ------=_Part_1589_5707329.1199500209103--