Fullscreen eats the bottom of my screen
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- counterfactual_jones
- Prole
- Posts: 24
- Joined: Mon Feb 09, 2009 10:14 am
Fullscreen eats the bottom of my screen
When I add 'fullscreen = true' to my game.conf, it works, but I do not get to see the bottom of the screen. That is to say the last 600-800 y don't show up. I'm guessing this is due to my widescreen monitor (1680x1050 native) but it's rather annoying and doesn't right it self once I kill the process. (forgot to add a quit button )
Re: Fullscreen eats the bottom of my screen
Hm, that's odd.
Also, pretty much every game or application leaves your screen at a shitty resolution if you kill its process, since you don't give it the chance to change the resolution back before it quits. Fix this by making F10 or something an emergency quit button.
Also, pretty much every game or application leaves your screen at a shitty resolution if you kill its process, since you don't give it the chance to change the resolution back before it quits. Fix this by making F10 or something an emergency quit button.
- counterfactual_jones
- Prole
- Posts: 24
- Joined: Mon Feb 09, 2009 10:14 am
Re: Fullscreen eats the bottom of my screen
Well yeah, but xrandr claimed that the current res WAS 1680x1050
- qubodup
- Inner party member
- Posts: 775
- Joined: Sat Jun 21, 2008 9:21 pm
- Location: Berlin, Germany
- Contact:
Re: Fullscreen eats the bottom of my screen
What resolution does the fullscreen game have? Perhaps you have to press the 'auto configure' button after full-screening it?
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
-
- Party member
- Posts: 215
- Joined: Sun Jan 18, 2009 8:03 pm
Re: Fullscreen eats the bottom of my screen
From my experiences, this has to do with the aspect ratio. How about having the program step through the list of supported modes and pick out one near 800x600?counterfactual_jones wrote:When I add 'fullscreen = true' to my game.conf, it works, but I do not get to see the bottom of the screen. That is to say the last 600-800 y don't show up. I'm guessing this is due to my widescreen monitor (1680x1050 native) but it's rather annoying and doesn't right it self once I kill the process. (forgot to add a quit button )
If I haven't written anything else, you may assume that my work is released under the LPC License - the LÖVE Community. See http://love2d.org/wiki/index.php?title=LPC_License.
- counterfactual_jones
- Prole
- Posts: 24
- Joined: Mon Feb 09, 2009 10:14 am
Re: Fullscreen eats the bottom of my screen
Well, I could do this inside the code. But I figured since I didn't need to set the resolution in the first place, Love was going to be nice and offer good defaults. In this case simply defining 'fullscreen = true' is a nice way of offering fullscreen for those who don't care what the actual resolution is, but if this default can't handle a non-standard aspect ratio, it's not as nice for quick development.
-
- Party member
- Posts: 215
- Joined: Sun Jan 18, 2009 8:03 pm
Re: Fullscreen eats the bottom of my screen
Hi, you could use either scissors to cut everything outside the desired resolution or CAMERA to scale everything (some weirdness may appear if the aspect ratio differs too much). The code for picking a suitable resolution can be simple, e.g.counterfactual_jones wrote:Well, I could do this inside the code. But I figured since I didn't need to set the resolution in the first place, Love was going to be nice and offer good defaults. In this case simply defining 'fullscreen = true' is a nice way of offering fullscreen for those who don't care what the actual resolution is, but if this default can't handle a non-standard aspect ratio, it's not as nice for quick development.
Code: Select all
for k,v in pairs(love.graphics.getModes()) do
local modeval = -(desiredWidth-v[1])^2 + -65536 * math.max(0,desiredWidth-v[1])^2 + -(desiredHeight-v[2])^2 + - ...
if modeval > bestmodeval then
...
end
end
If I haven't written anything else, you may assume that my work is released under the LPC License - the LÖVE Community. See http://love2d.org/wiki/index.php?title=LPC_License.
Re: Fullscreen eats the bottom of my screen
I also have a 1680*1050 widescreen monitor, but I do not experience this problem when running LÖVE. Can anyone else duplicate the problem?
My video card drivers offer an option to crop or scale resolutions that do not match the aspect ratio of my monitor. Could you have set yours to do the same?
My video card drivers offer an option to crop or scale resolutions that do not match the aspect ratio of my monitor. Could you have set yours to do the same?
-
- Party member
- Posts: 215
- Joined: Sun Jan 18, 2009 8:03 pm
Re: Fullscreen eats the bottom of my screen
I would be interested in seeing your list of your supported modes.zapwow wrote:I also have a 1680*1050 widescreen monitor, but I do not experience this problem when running LÖVE. Can anyone else duplicate the problem?
My video card drivers offer an option to crop or scale resolutions that do not match the aspect ratio of my monitor. Could you have set yours to do the same?
If I haven't written anything else, you may assume that my work is released under the LPC License - the LÖVE Community. See http://love2d.org/wiki/index.php?title=LPC_License.
Who is online
Users browsing this forum: Google [Bot] and 2 guests