The Trunk: Graphics-topa.382.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-topa.382.mcz

commits-2
Tobias Pape uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-topa.382.mcz

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

Name: Graphics-topa.382
Author: topa
Time: 4 October 2017, 2:43:10.503003 pm
UUID: 1f8b86d2-e987-40e3-84cd-8c689d87f60f
Ancestors: Graphics-mt.381

fix Point>>magnifyBy: to accept points

It already pretended to.

=============== Diff against Graphics-mt.381 ===============

Item was changed:
  ----- Method: Form>>magnifyBy: (in category 'scaling, rotation') -----
  magnifyBy: scale
  "Answer a Form created as a scaling of the receiver.
  Scale may be a Float or even a Point, and may be greater or less than 1.0."
+ | effectiveScale |
+ effectiveScale := scale isPoint ifTrue: [scale r] ifFalse: [scale].
-
  ^ self magnify: self boundingBox by: scale
+ smoothing: (effectiveScale < 1 ifTrue: [2] ifFalse: [1])!
- smoothing: (scale < 1 ifTrue: [2] ifFalse: [1])!