The Trunk: Morphic-mt.1059.mcz

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

The Trunk: Morphic-mt.1059.mcz

commits-2
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.1059.mcz

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

Name: Morphic-mt.1059
Author: mt
Time: 10 December 2015, 9:49:58.039 am
UUID: cbaef52e-fd80-4151-9a73-53b4eededc97
Ancestors: Morphic-tpr.1058

Fixes bug regarding the scaling of 8-bit color forms.

=============== Diff against Morphic-tpr.1058 ===============

Item was changed:
  ----- Method: Form>>scaledIntoFormOfSize:smoothing: (in category '*Morphic') -----
  scaledIntoFormOfSize: aNumberOrPoint smoothing: factor
  "Scale and center the receiver into a form of a given size"
 
  | extent scaledForm result |
 
  extent := aNumberOrPoint asPoint.
  extent = self extent ifTrue: [^ self copy].
 
  scaledForm := self scaledToSize: extent smoothing: factor.
 
+ result := self species extent: extent depth: self depth.
- result := self species extent: extent depth: 32.
  result getCanvas
  translucentImage: scaledForm
  at: extent - scaledForm extent // 2.
 
  ^ result
  !