Page 1 of 1

Issues with Screen Resolution

Posted: Thu Feb 05, 2015 12:40 pm
by Aberacht
Hello,

I'm running into issues with adjusting the window size and screen resolution for my rudimentary city builder game.

With the following code in the conf.lua file,

Code: Select all

t.window.width = 1920
t.window.height = 1080
and the following code in love.load() in main.lua,

Code: Select all

love.window.setFullscreen( true )
I get a full-screened game window that runs smoothly (meaning, the images are not scaled, the map scrolls smoothly, etc.) However, to my confusion, when trying to draw images to the window I've found that the screen resolution is not 1920x1080, but rather 1600x900. I've checked my laptop's native resolution and it is indeed 1920x1080, so I'm not sure why it's automatically resizing.

Any ideas as to why this might be happening? How can I get a full-screened window with the proper resolution?

Thanks in advance, and if additional information is necessary, I can upload a .zip of all my game files.

Re: Issues with Screen Resolution

Posted: Fri Feb 06, 2015 12:08 pm
by veethree
Uploading a .love would help us help you. Perhaps this is an issue with your laptop rather than your code. Maybe try the "Desktop" fullscreen mode.

Re: Issues with Screen Resolution

Posted: Fri Feb 06, 2015 1:20 pm
by Aberacht
The "Desktop" fullscreen mode seems to make the resolution even smaller (slightly less than 1600), and it also makes map scrolling stutter, losing the "smooth" quality that the regular 1600x900 fullscreen mode had.

I've attached my game files. Hopefully they will help.

Re: Issues with Screen Resolution

Posted: Fri Feb 06, 2015 1:39 pm
by Evine
I'd guess the window size is 1536x864 when your running "fullscreen desktop" if so you're probably running widows in "scaled" mode.

Image

Re: Issues with Screen Resolution

Posted: Fri Feb 06, 2015 1:45 pm
by Aberacht
Evine wrote:...
Worked like a charm. I have no idea how my computer ended up on that setting to begin with. Thank you for your help!