[squeak-dev] Mac VM display broken for smaller bit depths
Bert Freudenberg
bert at freudenbergs.de
Wed Sep 14 07:57:47 UTC 2016
This hack avoids entering an unusable state. OTOH it makes debugging it
more difficult. What to do?
- Bert -
On Tue, Sep 13, 2016 at 10:01 PM, <commits at source.squeak.org> wrote:
> 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!
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20160914/8d6d09f6/attachment.htm
More information about the Squeak-dev
mailing list
|