[squeak-dev] The Trunk: Graphics-nice.179.mcz
commits at source.squeak.org
commits at source.squeak.org
Mon Mar 28 08:17:27 UTC 2011
Nicolas Cellier uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-nice.179.mcz
==================== Summary ====================
Name: Graphics-nice.179
Author: nice
Time: 28 March 2011, 10:17:13.626 am
UUID: 82b3910b-eebb-354f-908b-3379136eabc3
Ancestors: Graphics-ul.178
Minor #ifNil: refactoring
=============== Diff against Graphics-ul.178 ===============
Item was changed:
----- Method: BitBlt>>colorConvertingMap:from:to:keepSubPixelAA: (in category 'private') -----
colorConvertingMap: targetColor from: sourceDepth to: destDepth keepSubPixelAA: keepSubPix
| srcIndex map mapsForSource mapsForSourceAndDest |
ColorConvertingMaps class == Array
ifFalse: [ColorConvertingMaps := (1 to: 10) collect: [:i | Array new: 32]].
srcIndex := sourceDepth.
sourceDepth > 8 ifTrue: [ srcIndex := keepSubPix ifTrue: [9] ifFalse: [10] ].
mapsForSource := ColorConvertingMaps at: srcIndex.
+ mapsForSourceAndDest := (mapsForSource at: destDepth) ifNil: [ mapsForSource at: destDepth put: Dictionary new ].
- (mapsForSourceAndDest := mapsForSource at: destDepth) isNil ifTrue: [
- mapsForSourceAndDest := mapsForSource at: destDepth put: Dictionary new ].
map := mapsForSourceAndDest at: targetColor ifAbsentPut: [
Color computeColorConvertingMap: targetColor from: sourceDepth to: destDepth keepSubPixelAA: keepSubPix ].
^ map!
More information about the Squeak-dev
mailing list
|