<p>I'm pretty sure it is a VM problem. For example on Linux it works as expected (which kind of supports that it is VM related). Mac does not take the display size from the Display but from the window, see the related method:</p>
<div class="highlight highlight-source-c"><pre><span class="pl-k">int</span> <span class="pl-en">ioScreenSize</span>(<span class="pl-k">void</span>) {
        <span class="pl-c"><span class="pl-c">/*</span> return the screen size as two positive 16-bit integers packed into a 32-bit integer <span class="pl-c">*/</span></span>
        <span class="pl-k">int</span> w = <span class="pl-c1">10</span>, h = <span class="pl-c1">10</span>;

        <span class="pl-k">if</span> (stWindow != nil) {
                w = stWindow-><span class="pl-smi">portRect</span>.<span class="pl-smi">right</span> - stWindow-><span class="pl-smi">portRect</span>.<span class="pl-smi">left</span>;
                h = stWindow-><span class="pl-smi">portRect</span>.<span class="pl-smi">bottom</span> - stWindow-><span class="pl-smi">portRect</span>.<span class="pl-smi">top</span>;
        }
        <span class="pl-k">return</span> (w << <span class="pl-c1">16</span>) | (h & <span class="pl-c1">0xFFFF</span>);  <span class="pl-c"><span class="pl-c">/*</span> w is high 16 bits; h is low 16 bits <span class="pl-c">*/</span></span>
}</pre></div>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you commented.<br />Reply to this email directly, <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/288#issuecomment-427331052">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AhLyW5opm4QsA_7FnDTdwXPYtMmNoHhFks5uhz_2gaJpZM4XJ3vl">mute the thread</a>.<img src="https://github.com/notifications/beacon/AhLyW83Hdvqxbni7LFCP77iR-XksJD-Gks5uhz_2gaJpZM4XJ3vl.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/OpenSmalltalk/opensmalltalk-vm","title":"OpenSmalltalk/opensmalltalk-vm","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm"}},"updates":{"snippets":[{"icon":"PERSON","message":"@pavel-krivanek in #288: I'm pretty sure it is a VM problem. For example on Linux it works as expected (which kind of supports that it is VM related). Mac does not take the display size from the Display but from the window, see the related method:\r\n```c\r\nint ioScreenSize(void) {\r\n\t/* return the screen size as two positive 16-bit integers packed into a 32-bit integer */\r\n\tint w = 10, h = 10;\r\n\r\n\tif (stWindow != nil) {\r\n\t\tw = stWindow-\u003eportRect.right - stWindow-\u003eportRect.left;\r\n\t\th = stWindow-\u003eportRect.bottom - stWindow-\u003eportRect.top;\r\n\t}\r\n\treturn (w \u003c\u003c 16) | (h \u0026 0xFFFF);  /* w is high 16 bits; h is low 16 bits */\r\n}\r\n``` "}],"action":{"name":"View Issue","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/288#issuecomment-427331052"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/288#issuecomment-427331052",
"url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/288#issuecomment-427331052",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [OpenSmalltalk/opensmalltalk-vm] Fallback window size on Mac is too small (#288)",
"sections": [
{
"text": "",
"activityTitle": "**pavel-krivanek**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@pavel-krivanek",
"facts": [

]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"OpenSmalltalk/opensmalltalk-vm\",\n\"issueId\": 288,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"OpenSmalltalk/opensmalltalk-vm\",\n\"issueId\": 288\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/288#issuecomment-427331052"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 388463589\n}"
}
],
"themeColor": "26292E"
}
]</script>