Fullscreen issues - Whole screen seems to offset

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
The_A_Drain
Prole
Posts: 6
Joined: Wed Oct 10, 2012 2:53 pm

Fullscreen issues - Whole screen seems to offset

Post 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.
Attachments
Tutorials.love
(187.2 KiB) Downloaded 92 times
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Fullscreen issues - Whole screen seems to offset

Post by Nixola »

I think your problem may actually be your monitor, your .love runs fine here
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
The_A_Drain
Prole
Posts: 6
Joined: Wed Oct 10, 2012 2:53 pm

Re: Fullscreen issues - Whole screen seems to offset

Post 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.
User avatar
Boolsheet
Inner party member
Posts: 780
Joined: Wed Dec 29, 2010 4:57 am
Location: Switzerland

Re: Fullscreen issues - Whole screen seems to offset

Post 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?
Shallow indentations.
The_A_Drain
Prole
Posts: 6
Joined: Wed Oct 10, 2012 2:53 pm

Re: Fullscreen issues - Whole screen seems to offset

Post 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.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 3 guests