<p></p>
<p>Willy Elektrix <a href="https://www.slimesalad.com/forum/viewtopic.php?t=8031" rel="nofollow">reported</a> that the 64-bit SDL 1.2 Mac build of Gorgonzola shows a black screen when run fullscreen. I think the problem is specific to the monitor resolution (1680*1050) and game resolution (320x200).</p>
<pre><code> 0.3  OHRRPGCE gorgonzola 20200502.11799 gfx_sdl/music_sdl FreeBASIC 1.06.0 (04-29-2016) GCC 4.7.4 x86_64  Built on loyalist.local -gen gcc Mac OS X/Darwin 64-bit
...
 0.3  Runtime info:   music_sdl, SDL 1.2.14, SDL_Mixer 1.2.11  Mac OS 10.12.6 
...
20.5  lock_resolution()
20.5  setvideomode zoom=2 w*h = 640*400
20.5  gfx_sdl: created screensurface size=640*400 depth=32 flags=4 R=ff00 G=ff0000 B=ff000000 A=0 is_RGBcolor=0
20.5  Desktop resolution: 1680*1050
20.5  automatic_scale_factor(0.5), screen size: 1680*1050
20.5  Setting graphics scaling to x3 change_windowsize=-1
20.5  set_zoom change_windowsize=-1, zoom=3 old size = 640,400
20.5  recenter_window_hint()
20.5  setvideomode zoom=3 w*h = 960*600
20.5  gfx_sdl: created screensurface size=960*600 depth=32 flags=4 R=ff00 G=ff0000 B=ff000000 A=0 is_RGBcolor=0
20.5  /Users/AHagen/Library/Application Support/OHRRPGCE/asquatter/gameconfig.ini : gfx.fullscreen = -1, genFullscreen = 0
20.5  setvideomode zoom=3 w*h = 960*600
20.9  ! Failed to open display (windowed = 0): Failed to find display resolution: 1024x640x32
20.9  setwindowed: fallback to previous zoom
20.9  setvideomode zoom=3 w*h = 960*600
</code></pre>
<p>It looks like the Mac build machine is using a build of SDL 1.2.14 (released 2009) instead of the last release, 1.2.15 (released 2011). I notice that the error ("Failed to find display resolution") is thrown only from Mac-specific code in SDL (QZ_SetVideoFullScreen) that was rewritten in SDL 1.2.15 (<a href="http://lists.libsdl.org/pipermail/commits-libsdl.org/2011-August/004236.html" rel="nofollow">http://lists.libsdl.org/pipermail/commits-libsdl.org/2011-August/004236.html</a>). This makes me think that upgrading to SDL 1.2.15 might fix it, although 1.2.15 still has a code path to throw the same error.</p>
<p>(Note: x86 gfx_sdl builds use the copy of SDL in mac/Frameworks.tar.gz, while x86_64 builds use the system-installed copy of SDL.framework)</p>
<p>Googling the error, I found a couple mentions of it in Mac game from many years ago. I assume it's also fixed in SDL 2.</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/1138">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AMWGWZTMZSFDJW5OSWN5TVDR4I5YTANCNFSM4PASR7EQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AMWGWZSHNTQPPNMILDWFUI3R4I5YTA5CNFSM4PASR7E2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4J26C5AQ.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/1138",
"url": "https://github.com/ohrrpgce/ohrrpgce/issues/1138",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>