<p></p>
<p><b>@marceltaeumel</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/658#discussion_r1021620888">platforms/win32/vm/sqWin32Window.c</a>:</p>
<pre style='color:#555'>> @@ -1793,7 +1794,12 @@ static thisGetDpiForMonitor_t thisGetDpiForMonitor = NULL;
  */
 static double getDpiSystem(void)
 {
-  return (double) GetDeviceCaps(GetWindowDC(stWindow), LOGPIXELSY);
+  double dpi;
+  HDC dc = GetWindowDC(stWindow);
+  if (!dc) return 0.0; /* fail */
</pre>
<p dir="auto">Nevermind. I mixed up dpi with scale factor here. Sorry for the noise.</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/pull/658#discussion_r1021620888">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AIJPEW5COKOSFY2ZGJ57BDLWIJFC3ANCNFSM6AAAAAAR74AY7U">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AIJPEW2LQQGVW3YSAQVLE2TWIJFC3A5CNFSM6AAAAAAR74AY7WWGG33NNVSW45C7OR4XAZNRKB2WY3CSMVYXKZLTORJGK5TJMV32UY3PNVWWK3TUL5UWJTSGJGNLG.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/pull/658/review/1179228851</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/pull/658#discussion_r1021620888",
"url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/658#discussion_r1021620888",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>