Opened 4 years ago

Closed 13 months ago

#13454 closed defect (fixed)

BACKENDS: MACOSX - alt-enter fullscreen isn't notch-aware.

Reported by: somaen Owned by: lephilousophe
Priority: normal Component: Port: Mac OS X
Version: Keywords:
Cc: Game:

Description

Currently there are two distinct types of fullscreen available in ScummVM on macOS:

  • Pressing the green button on the window
  • This has notch-aware behavior and supports Spaces
  • Pressing alt-enter
  • This is NOT notch-aware for 3D games, unless we've set the "Scale to fit below notch flag" in Get Info in Finder.

Both modes seem to be notch-aware for 2D games.

Now in theory NSPrefersDisplaySafeAreaCompatibilityMode in the Info.plist should yield the same result as setting the Get Info flag, but from my testing it doesn't seem to work. And since this only affects the 3D games, I would assume there's some detail in that graphics backend that isn't doing the same thing window-handling wise as for 2D.

ScummVM 2.5.1 on macOS Monterey 12.3

Change History (2)

comment:1 by criezy, 4 years ago

And since this only affects the 3D games, I would assume there's some detail in that graphics backend that isn't doing the same thing window-handling wise as for 2D.

My guess is that this is related to the 3D graphics backend code using SDL_WINDOW_FULLSCREEN while the 2D one uses SDL_WINDOW_FULLSCREEN_DESKTOP to create the window.
Compare
https://github.com/scummvm/scummvm/blob/8ea587517e/backends/graphics3d/openglsdl/openglsdl-graphics3d.cpp#L488-L501
to
https://github.com/scummvm/scummvm/blob/8ea587517e/backends/graphics/openglsdl/openglsdl-graphics.cpp#L504-L521

comment:2 by lephilousophe, 13 months ago

Owner: set to lephilousophe
Resolution: fixed
Status: newclosed

This got fixed with the 3D backend removal.

Note: See TracTickets for help on using tickets.