<p></p>
<p dir="auto">Well, the calls <code class="notranslate">convertRectToBacking:</code> and <code class="notranslate">convertRectFromBacking:</code> are required to make <code class="notranslate">primitiveHostWindowSizeSet</code> work in the HostWindowPlugin. Without them, a request like <code class="notranslate">DisplayScreen setNewScreenSize: 1024@768</code> from the image will end up as a window double the size on a typical 2.0 retina display. Which is wrong.</p>
<p dir="auto">I am not familar with the window-sharing/grabbing mechanism in Virtend. Yet, that would be the place to look to figure out how to correctly access windows that are or aren't scaled on macOS.</p>
<p dir="auto">If your Virtend window is too small, just make it bigger. It's nothing that macOS should do. Your Virtend client has to do it. We provide that primitive <code class="notranslate">#primitiveScreenScaleFactor</code> for exactly that reason. If you platform reports 2.0, then just make the Virtend window bigger my that factor.</p>
<p dir="auto">The goal here is to work with native pixels from within the image. That is, the image can react to changes in the platform scale factor and, for example, resize its window if the platform did not already do this, which can already be checked.</p>
<p dir="auto">Note that Squeak 5.3 does not do that. Maybe that is the problem. Only 6.0alpha has the image-side code at the moment. macOS used to have an app property to run the app in "Low Resolution Mode". Maybe you need to activate that for Virtend. But I think it's gone in macOS 12. Who knows why.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/5430585a3043efd8068a33aaa436fb70bfbe998b#commitcomment-73285774">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AIJPEW44ERNEC4GPAVFMNPTVJIOBVANCNFSM5VQXVRRA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AIJPEW5VEJ7VISAVRQKKEOTVJIOBVA5CNFSM5VQXVRRKYY3PNVWWK3TUL52HS4DFVVBW63LNNF2EG33NNVSW45FKMNXW23LFNZ2F62LEZYCF4QEO.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><OpenSmalltalk/opensmalltalk-vm/commit/5430585a3043efd8068a33aaa436fb70bfbe998b/73285774</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/5430585a3043efd8068a33aaa436fb70bfbe998b#commitcomment-73285774",
"url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/5430585a3043efd8068a33aaa436fb70bfbe998b#commitcomment-73285774",
"name": "View Commit"
},
"description": "View this Commit on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>