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.
Fullscreen issues - Whole screen seems to offset
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Prole
- Posts: 6
- Joined: Wed Oct 10, 2012 2:53 pm
Fullscreen issues - Whole screen seems to offset
- Attachments
-
- Tutorials.love
- (187.2 KiB) Downloaded 96 times
Re: Fullscreen issues - Whole screen seems to offset
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
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
-
- Prole
- Posts: 6
- Joined: Wed Oct 10, 2012 2:53 pm
Re: Fullscreen issues - Whole screen seems to offset
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.
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
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?
I looked quickly over your code and didn't spot such checks. Could it be this?
Shallow indentations.
-
- Prole
- Posts: 6
- Joined: Wed Oct 10, 2012 2:53 pm
Re: Fullscreen issues - Whole screen seems to offset
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.
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.
Who is online
Users browsing this forum: Bing [Bot] and 8 guests