1. Anders Ruud
  2. love
  3. Issues


Issue #897 invalid

Problem with Mac OS Fullscreen (1280x800)

Robert M.
created an issue


I couldn't find any related bug report, so it might be an issue on my end. It seems like I can't get löve's fullscreen to work properly on Mac OSX (10.9.3). It looks like the whole screen is slightly offset on the y-axis:

<snip> (You can see that the mouse pointer at the bottom of the screen is at 777 instead of 800)

Another problem (which might be related) is that it also influences the mouse pointer's position: <snip>

I set it manually to [200, 300] but it "jumps" to [200, 277] when I move the mouse for the first time. I noticed this when I wrote code which allowed to navigate a menu with both the mouse and the keyboard and was surprised to see my mouse jump to a different position all the time. <snip>

Needless to say that it breaks a lot of functionality. Any idea how it could be fixed? For now I'll simply stick to windowed modes.

Sorry for the big pictures. I can also provide the .love file if you need it.

Comments (4)

  1. Alex Szpakowski

    It's a bug in SDL 2.0.3's backend code for exclusive-fullscreen mode in OS X. Luckily it was fixed recently, so I'll upload a new zip of LÖVE for OS X which has a fixed build of SDL soon.

    On the other hand, exclusive-fullscreen is kind of a crappy experience, especially on OS X (no command-tabbing, etc), I'd recommend using fullscreen-desktop instead, if your code can handle always using the desktop resolution.

  2. Robert M. reporter

    Just tried the fullscreen-desktop and it gets rid of the screen offset.

    The issue with the displaced mouse might be unrelated because it still happens with fullscreen-desktop. It seems like the system's mouse pointer is set to the correct position, but löve doesn't detect it correctly internally:


    It's not a big issue though, as it fixes itself as soon as I move the mouse.

  3. Alex Szpakowski

    I've uploaded a new Mac build of 0.9.1 which has an updated version of SDL with the fixed screen offset in exclusive fullscreen (it took a while because there was a nasty crash bug in recent SDL versions until now.)

    The mouse position offset seems to be this: https://bugzilla.libsdl.org/show_bug.cgi?id=2655

    I'm marking this issue as invalid because it doesn't really have much to do with LÖVE's source code, it's all in SDL.

  4. Log in to comment