fullscreen on projector, television and retinal displays

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
wilbefast
Prole
Posts: 4
Joined: Sat Dec 28, 2013 3:19 am

fullscreen on projector, television and retinal displays

Post by wilbefast »

Hi all,

Just managed to fix a weird bug that reported in my game "Eggz" and figured the solution might be useful to someone.

The bug was: on really big screens I get, for some reason, a view on a tiny corner of the game. The television I'm testing on reset its resolution to 800x600 but Löve still reported 1920x1080 as a valid resolution and set it successfully. The result is an image that doesn't fit in the screen, which has mysteriously been set to 800x600.

The reason the screen is set to this low resolution seems to be that fullscreen is set to true in love.conf:

Code: Select all

t.window.fullscreen = true
Löve creates a default window at 800x600 fullscreen, the television automatically adapts its resolution to compensate. It's not until later that the window.setMode shows up and sets the resolution to 1920x1080 - for some reason by this time it is too late as the windows already exists: the television doesn't reset its resolution a second time and to add insult to injury I'm stuck with an 800x600 resolution after I exit the game.

This problem occurs on large televisions, projectors and retinal displays.
Attachments
Screenshot of the resolution 'bug'
Screenshot of the resolution 'bug'
EGGZ Capture d’écran 2013-12-19 à 23.59.06.png (754.59 KiB) Viewed 1715 times
User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: fullscreen on projector, television and retinal displays

Post by Ranguna259 »

Apparently the resolutions isn't updating.. Have you tried resetting fullscreen in setMode() ?
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.
wilbefast
Prole
Posts: 4
Joined: Sat Dec 28, 2013 3:19 am

Re: fullscreen on projector, television and retinal displays

Post by wilbefast »

Have you tried resetting fullscreen in setMode() ?
My setMode has a { fullscreen = true } in it, yes. Perhaps setting fullscreen to false and then back again might work - sadly I only had access to the big television yesterday. getMode revealed that the explicit setMode in my had indeed been taken into account by Löve, but that the telelvision resets its resolution only on the first mode change (the one caused by the configuration file).
Post Reply

Who is online

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