<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 31 January 2017 at 11:12, Christophe Demarey <span dir="ltr"><<a href="mailto:christophe.demarey@inria.fr" target="_blank">christophe.demarey@inria.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
With Pavel, we discovered a strange behavior of the primitive #primitiveScreenDepth on Linux. It returns a value of 24 bits per pixel (True colors) that looks valid but not supported (at least by Pharo).<br>
<br>
DisplayScreen actualScreenDepth "(calling the primitive screenDepth)"<br>
        => 32 on OS X [OK]<br>
        => 24 on Linux [KO]<br>
<br>
Also, it is not consistent with the primitive 91<br>
<br>
DisplayScreen new supportsDisplayDepth: DisplayScreen actualScreenDepth<br>
        => true on OS X<br>
        => false on Linux<br>
<br>
There are some safeguard image-side but it would be great if someone could check that vm side.<br>
<span class="HOEnZb"><font color="#888888"><br>
Christophe.<br>
</font></span></blockquote></div><div class="gmail_extra"><br></div>IIRC in Pharo, we purposedly decided to support only single screen depth internally for Display. <br>It is then the headache of VM driver to convert 32bpp to anything that suitable to deliver it on screen.<br><br>The problem with this prim, is that it doesn't really tells you anything, especially since Pharo started using SDL. <br>Also IIRC Squeak/Pharo doesn't forcing you to use native bitmaps (or only those that supported </div><div class="gmail_extra">on platform it runs).<br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Best regards,<br>Igor Stasenko.<br><br></div>
</div></div>