[squeak-dev] Mac VM display broken for smaller bit depths

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Wed Sep 14 11:51:35 UTC 2016


could we bissect from which version this happened?

2016-09-14 10:13 GMT+02:00 Bert Freudenberg <bert at freudenbergs.de>:

> On Wed, Sep 14, 2016 at 10:02 AM, Tobias Pape <Das.Linux at gmx.de> wrote:
>
>> Hi,
>>
>> On 14.09.2016, at 09:57, Bert Freudenberg <bert at freudenbergs.de> wrote:
>>
>> > This hack avoids entering an unusable state. OTOH it makes debugging it
>> more difficult. What to do?
>>
>> Is the unstable state present in cocoa or carbon VMs?
>> Best regards
>>         -Tobias
>>
>
> Cocoa I would think? A current Spur VM. The display just looks garbled
> e.g. when choosing 16 bpp. I wouldn't call it "unstable" just "unusable".
>
> - Bert -
>
>
>
>>
>> >
>> > - 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/976c7e7f/attachment.htm


More information about the Squeak-dev mailing list