The Trunk: Graphics-fbs.162.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Graphics-fbs.162.mcz

commits-2
Nicolas Cellier uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-fbs.162.mcz

==================== Summary ====================

Name: Graphics-fbs.162
Author: fbs
Time: 17 December 2010, 9:22:36.618 am
UUID: 458866b2-2481-004f-a041-74d79335ad23
Ancestors: Graphics-nice.161

Fix failing RectangleTest>>testRoundingAfterHalfPixelTranslation.

Rectangle rounded rounds the origin, and minimises the change in extent the same by rounding the extent rather than rounding the corner.

=============== Diff against Graphics-nice.161 ===============

Item was changed:
  ----- Method: Rectangle>>rounded (in category 'truncation and round off') -----
  rounded
  "Answer a Rectangle whose origin and corner are rounded."
 
+ ^Rectangle origin: origin rounded extent: self extent rounded!
- ^Rectangle origin: origin rounded corner: corner rounded!