SDL/src
Sam Lantinga 7e083b162d Fixed bug 2534 - Mac: black bar at top of screen in SDL_WINDOW_FULLSCREEN mode
Alex Szpakowski

Patch to fix the y component of the position of fullscreen windows in OS X.

In Mac OS X with the latest Mercurial code, when a window is in exclusive-fullscreen the y component of its position is offset by the same amount that is normally taken up by the menubar, resulting in a black bar at the top of the screen.

The recent changes to the internal ConvertNSRect function make it treat the bottom of the menubar as 0 for the y component of window positions, even when the window is fullscreen and 'above' the menubar.

I have attached a patch which fixes the issue by only making the window position relative to the menubar in windowed modes.
2014-06-02 09:09:40 -07:00
..
atomic
audio
core
cpuinfo
dynapi
events
file
filesystem
haptic
joystick
libm
loadso
main
power
render
stdlib
test
thread
timer
video
SDL_assert_c.h
SDL_assert.c
SDL_error_c.h
SDL_error.c
SDL_hints.c
SDL_internal.h
SDL_log.c
SDL.c