lpcware

GUIDRV_Lin_OSX_32_API

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by Harvey_13 on Thu May 23 00:03:27 MST 2013

Hello,


<span><span class="hps">So far</span> <span class="hps">I used</span> <span class="hps">emWin</span> <span class="hps">and</span> S<span class="hps">wim</span> <span class="hps">in landscape mode</span> <span class="hps">for my</span> <span class="hps">tests.</span>
<span class="hps">I adapted</span> <span class="hps">swim</span><span class="hps"> to work</span> <span class="hps">in portrait mode</span>.
<span class="hps">I thought</span> <span class="hps">for</span> <span class="hps">emWin</span> <span class="hps">there would have</span> <span class="hps">no problem because</span> <span class="hps">it</span> <span class="hps">is supposed to</span> <span class="hps">provide</span> this mode.
<span class="hps">But</span> <span class="hps">when I changed</span> <span class="hps">the driver ,</span></span>


<span><span class="hps"> </span><code>#define DISPLAY_DRIVER &amp;GUIDRV_Lin_OSX_32_API</code></span>


<span><span class="hps"></span> <span class="hps">and</span> <span class="hps">I changed</span> <span class="hps">the size of the</span> <span class="hps">screen</span> <span class="hps">by reversing the</span> <span class="hps">x and y sizes, the </span><span class="hps">screen</span> <span class="hps">rotation is done</span> <span class="hps">but</span> <span class="hps">the</span><span class="hps"> display is not</span> <span class="hps">correct :
</span></span>


<span><strong>One vertical line on two is black</strong> <span class="hps"></span><span>:</span> <span class="hps">my</span> <span class="hps">display</span> <span class="hps">is then</span> twice as wide<span class="hps">, but correct on the height.</span><span class="hps"></span></span>


<span><span class="hps">For example on the function    </span></span>


<span><span class="hps"><code>GUI_DispStringHCenterAt("Color bars", xSize &gt;&gt; 1, 12);</code></span></span>


The text is center on the right edge of the screen showing only its first half<span><span class="hps">, even if xSize is correct ....
</span></span>


<span><span class="hps">Someone</span> <span>have</span> <span class="hps">an idea?</span></span>

Outcomes