[BUG][FIX]Form > rotate... fails for subclasses

Tim Rowledge tim at sumeru.stanford.edu
Wed Sep 29 00:09:37 UTC 2004


Whilst testing the upcoming multiple host OS windows code I found a couple
of bugs/infelicities in Form.
a) rotating a subclass of Form insisted on returning a Form.
b) you couldn't rotate and magnify by a Point.
So I fixed it up a bit. Now you can  do things like 
Display rotateBy: 34 magnify: 0.3 at 2 smoothing:2 .
The magnify code already works with Points so I just fixed the comments.
Cool 3D psychadelic effects are now so much easier @-)

I also note a method named #rotateBy:centerAt: which does NOT take a
numeric argument for the rotation amount which is very confusing. It
seems to be related to several other methods with similar symbolic
rotation amount for Point and Rectangle. 

tim
--
Tim Rowledge, tim at sumeru.stanford.edu, http://sumeru.stanford.edu/tim
Oxymorons: Sanitary landfill
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FormRotatefix-tpr.1.cs.gz
Type: application/riscos
Size: 1465 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20040928/bf4da965/FormRotatefix-tpr.1.cs.bin


More information about the Squeak-dev mailing list