[squeak-dev] The Trunk: Graphics-mtf.166.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Dec 29 05:20:26 UTC 2010


Matthew Fulmer uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-mtf.166.mcz

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

Name: Graphics-mtf.166
Author: mtf
Time: 29 December 2010, 12:18:13.549 am
UUID: 3699b0e8-b9af-004c-8838-79c154a58c8e
Ancestors: Graphics-mtf.165

- fix 16->32 bit WarpBlt w/ smoothing. Cherrypicked from Croquet:

Name: Graphics-ar.19
Author: ar
Time: 26 April 2007, 10:27:46 pm
UUID: 168b5074-6c71-cc45-902a-b8df103114e4
Ancestors: Graphics-bf.18

- fix 16->32 bit WarpBlt w/ smoothing

=============== Diff against Graphics-mtf.165 ===============

Item was changed:
  ----- Method: WarpBlt>>cellSize: (in category 'setup') -----
  cellSize: s
+ 	"Set the number of samples used for averaging"
  	cellSize := s.
  	cellSize = 1 ifTrue: [^ self].
+ 	"Install the colorMap to used for mapping the averaged RGBA 32bit pixels to the
+ 	destination depth. Note that we need to install the 32->32 color map explicitly because
+ 	the VM will substitute a colorMap derived from sourceForm->destForm mapping which
+ 	is just plain wrong for <32 source and 32bit dest depth"
+ 	(destForm depth = 32 and: [sourceForm notNil] and: [sourceForm depth < 32])
+ 		ifTrue:[colorMap := ColorMap shifts: #(0 0 0 0) masks:#(16rFF0000 16rFF00 16rFF 16rFF000000) colors: nil]
+ 		ifFalse:[colorMap := Color colorMapIfNeededFrom: 32 to: destForm depth].
- 	colorMap := Color colorMapIfNeededFrom: 32 to: destForm depth.
  !




More information about the Squeak-dev mailing list