<div dir="ltr">This hack avoids entering an unusable state. OTOH it makes debugging it more difficult. What to do?<div><br></div><div>- Bert -<br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 13, 2016 at 10:01 PM, <span dir="ltr"><<a href="mailto:commits@source.squeak.org" target="_blank">commits@source.squeak.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Bert Freudenberg uploaded a new version of Graphics to project The Trunk:<br>
<a href="http://source.squeak.org/trunk/Graphics-bf.365.mcz" rel="noreferrer" target="_blank">http://source.squeak.org/<wbr>trunk/Graphics-bf.365.mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: Graphics-bf.365<br>
Author: bf<br>
Time: 13 September 2016, 10:01:12.119134 pm<br>
UUID: 184228fa-4e38-472a-8e51-<wbr>1cd86ff433f4<br>
Ancestors: Graphics-tfel.364<br>
<br>
Work around Mac VM bug: use 32 bpp<br>
<br>
=============== Diff against Graphics-tfel.364 ===============<br>
<br>
Item was added:<br>
+ ----- Method: DisplayScreen>><wbr>primSupportsDisplayDepth: (in category 'other') -----<br>
+ primSupportsDisplayDepth: pixelDepth<br>
+ "Return true if this pixel depth is supported on the current host platform.<br>
+ Primitive. Optional."<br>
+ <primitive: 91><br>
+ ^#(1 2 4 8 16 32) includes: pixelDepth!<br>
<br>
Item was changed:<br>
----- Method: DisplayScreen>><wbr>supportsDisplayDepth: (in category 'other') -----<br>
supportsDisplayDepth: pixelDepth<br>
+ "Return true if this pixel depth is supported on the current host platform."<br>
+ Smalltalk platformName = 'Mac OS' ifTrue: [^pixelDepth abs = 32]. "Work around VM bug"<br>
+ ^self primSupportsDisplayDepth: pixelDepth!<br>
- "Return true if this pixel depth is supported on the current host platform.<br>
- Primitive. Optional."<br>
- <primitive: 91><br>
- ^#(1 2 4 8 16 32) includes: pixelDepth!<br>
<br>
<br>
</blockquote></div><br></div></div></div>