WarpBlt versus
John M McIntosh
johnmci at smalltalkconsulting.com
Tue Feb 13 05:17:13 UTC 2001
WarpBit>>rgbMap: sourcePixel from: nBitsIn to: nBitsOut
NOTE: This code is copied verbatim from BitBltSimulation so that it
may be removed from the system"
...
Yet if I look at BitBltSimulation it has this additional code in it.
Are they in sync?
d = 0 ifTrue:
[nBitsIn = 5 ifTrue:
["Sometimes called with 16
bits, though pixel is 15,
but we must never return more than 15."
^ sourcePixel bitAnd: 16r7FFF].
nBitsIn = 8 ifTrue:
["Sometimes called with 32
bits, though pixel is 24,
but we must never return more than 24."
^ sourcePixel bitAnd: 16rFFFFFF].
^ sourcePixel]. "no compression"
--
--
===========================================================================
John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com
===========================================================================
Custom Macintosh programming & various Smalltalk dialects
PGP Key: DSS/Diff/46FC3BE6
Fingerprint=B22F 7D67 92B7 5D52 72D7 E94A EE69 2D21 46FC 3BE6
===========================================================================
More information about the Squeak-dev
mailing list
|