mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 01:05:28 +00:00
Mac: Correct the y-axis position after 870c7d21004b
This fixes a bug where we'd offset positions by the height of the dock, if it was along the bottom of the screen. Fixes https://bugzilla.libsdl.org/show_bug.cgi?id=2509 Thanks to Alex Szpakowski for bug & patch.
This commit is contained in:
parent
dfea14d92d
commit
8b28009105
|
@ -92,7 +92,7 @@ static Uint32 s_moveHack;
|
|||
static void ConvertNSRect(NSScreen *screen, NSRect *r)
|
||||
{
|
||||
NSRect visibleScreen = [screen visibleFrame];
|
||||
r->origin.y = visibleScreen.size.height - r->origin.y - r->size.height;
|
||||
r->origin.y = (visibleScreen.origin.y + visibleScreen.size.height) - r->origin.y - r->size.height;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue