Page 1 of 1

Fullscreen issues - Whole screen seems to offset

Posted: Thu Oct 11, 2012 7:26 pm
by The_A_Drain
Hi again guys,

I've been getting to grips with LUA and Love2D and decided to put together a base front-end template for use in game jams etc and I'm getting on pretty well except whenever I try to set graphics mode to fullscreen it ends up appearing much lower on the monitor than it should. There is a huge black bar above the 0,0 position and the bottom of the game window goes below the bottom of the monitor.

I'm assuming this is a problem with my setup or my code and not Love2D. I've included the .love incase anyone else can replicate the issue or confirm that it's just my setup.

Thanks all :) hopefully it's just something silly I did.

Re: Fullscreen issues - Whole screen seems to offset

Posted: Thu Oct 11, 2012 7:32 pm
by Nixola
I think your problem may actually be your monitor, your .love runs fine here

Re: Fullscreen issues - Whole screen seems to offset

Posted: Thu Oct 11, 2012 7:37 pm
by The_A_Drain
Ah that sucks, thanks for the heads up.

I'll keep tinkering, it's about time to update my drivers anyway maybe that will solve the issue.

Re: Fullscreen issues - Whole screen seems to offset

Posted: Thu Oct 11, 2012 8:00 pm
by Boolsheet
You have to check what fullscreen modes are available or the window manager/server may say no, do something weird (like in your case), or even die a horrible death. Only use the modes reported by love.graphics.getModes for fullscreen.

I looked quickly over your code and didn't spot such checks. Could it be this?

Re: Fullscreen issues - Whole screen seems to offset

Posted: Thu Oct 11, 2012 8:08 pm
by The_A_Drain
It's very likely, I wasn't aware of getModes(), I'll look into it and see if I can make some changes.

Thanks for the info :)

edit: That was exactly it! Thank you. Turns out I was calculating a resolution my monitor doesn't support. I still have a bit of work to do on this it seems. Thanks for the info, much appreciated.