The Trunk: Graphics-bf.365.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-bf.365.mcz

commits-2
Bert Freudenberg uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-bf.365.mcz

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

Name: Graphics-bf.365
Author: bf
Time: 13 September 2016, 10:01:12.119134 pm
UUID: 184228fa-4e38-472a-8e51-1cd86ff433f4
Ancestors: Graphics-tfel.364

Work around Mac VM bug: use 32 bpp

=============== Diff against Graphics-tfel.364 ===============

Item was added:
+ ----- Method: DisplayScreen>>primSupportsDisplayDepth: (in category 'other') -----
+ primSupportsDisplayDepth: pixelDepth
+ "Return true if this pixel depth is supported on the current host platform.
+ Primitive. Optional."
+ <primitive: 91>
+ ^#(1 2 4 8 16 32) includes: pixelDepth!

Item was changed:
  ----- Method: DisplayScreen>>supportsDisplayDepth: (in category 'other') -----
  supportsDisplayDepth: pixelDepth
+ "Return true if this pixel depth is supported on the current host platform."
+ Smalltalk platformName = 'Mac OS' ifTrue: [^pixelDepth abs = 32]. "Work around VM bug"
+ ^self primSupportsDisplayDepth: pixelDepth!
- "Return true if this pixel depth is supported on the current host platform.
- Primitive. Optional."
- <primitive: 91>
- ^#(1 2 4 8 16 32) includes: pixelDepth!