Issues with Screen Resolution

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
Aberacht
Prole
Posts: 3
Joined: Thu Feb 05, 2015 12:28 pm

Issues with Screen Resolution

Post 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.
User avatar
veethree
Inner party member
Posts: 877
Joined: Sat Dec 10, 2011 7:18 pm

Re: Issues with Screen Resolution

Post 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.
Aberacht
Prole
Posts: 3
Joined: Thu Feb 05, 2015 12:28 pm

Re: Issues with Screen Resolution

Post 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.
Attachments
IsoMeso.rar
(12.71 KiB) Downloaded 119 times
User avatar
Evine
Citizen
Posts: 72
Joined: Wed May 28, 2014 11:46 pm

Re: Issues with Screen Resolution

Post 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
Artal, A .PSD loader: https://github.com/EvineDev/Artal
Aberacht
Prole
Posts: 3
Joined: Thu Feb 05, 2015 12:28 pm

Re: Issues with Screen Resolution

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

Who is online

Users browsing this forum: No registered users and 2 guests