Change resolution according to screen size

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
AdityaSingh
Prole
Posts: 3
Joined: Thu Feb 14, 2019 8:57 am

Change resolution according to screen size

Post by AdityaSingh »

How to change my app resolution according to client display size ? For example, if someone have ultra wide or square display the app should fit perfectly according to the resolution of the display.
User avatar
pgimeno
Party member
Posts: 3550
Joined: Sun Oct 18, 2015 2:58 pm

Re: Change resolution according to screen size

Post by pgimeno »

You need a plan for how to handle different aspect ratios. That's application-specific. Some programs can do with showing more of the map, others can do with clipping, others will need filler bands. A few applications might be OK with stretching in one of the dimensions, but I'd say that's rare.

There's more discussion here: viewtopic.php?p=223431#p223431
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 245 guests