<p></p>
<p>On Mac, gfx_sdl (in SDLMain.m) sets up the menu bar menus and registers hotkeys for the menu items.  In particular the Window menu has "Minimise", "Fullscreen", and "Zoom 1-4x" (hotkeys Cmd-1/2/3/4) options, and a Help menu has a "Help: Press F1 or Cmd-Shift-?" option.</p>
<p>gfx_sdl2 doesn't link to SDLMain.m, so it just has the default menubar provided by SDL2 (including a Window menu with a maximise/zoom option which usually immediately crashes, due to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="731928747" data-permission-text="Title is private" data-url="https://github.com/ohrrpgce/ohrrpgce/issues/1181" data-hovercard-type="issue" data-hovercard-url="/ohrrpgce/ohrrpgce/issues/1181/hovercard" href="https://github.com/ohrrpgce/ohrrpgce/issues/1181">#1181</a>), and IIRC also lacks support for some hotkeys.</p>
<p>SDLMain.m is written for SDL 1.2, and can't just be linked into an SDL2 program. I don't know how you're meant to programmatically set the menu bar and in general access the Cocoa API in SDL2 (without using a .nib menu definition file, which I don't want to do). I have tried using <code>#ifdefs</code> to make it compatible but don't have it working yet.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/ohrrpgce/ohrrpgce/issues/1183">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AMWGWZQR2XAJLOLSS2YPHM3SOYURHANCNFSM4TODIU7Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AMWGWZUJLYIJPDNW7JFJWTLSOYURHA5CNFSM4TODIU72YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4LACXXMA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/ohrrpgce/ohrrpgce/issues/1183",
"url": "https://github.com/ohrrpgce/ohrrpgce/issues/1183",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>