How is related the output of love.window.getDPIScale() with DPI categories?

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
cristoferfb
Prole
Posts: 16
Joined: Wed May 15, 2019 12:41 am
Location: Valparaiso, Chile.

How is related the output of love.window.getDPIScale() with DPI categories?

Post by cristoferfb »

Hi I want to know if the love.window.getDPIScale( ) function allow me to get the DPI category of the device according to the next table:
Image

The documentation says a 2.0 means a highdpi screen but I dont sure if its accordingly to the table I show.
User avatar
zorg
Party member
Posts: 3465
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: How is related the output of love.window.getDPIScale() with DPI categories?

Post by zorg »

No, the wiki page says that the highdpi flag needs to be set(enabled) for OSX to utilize the retina display fully, and that on Android systems, it's forced to be always on.

As for what the function itself returns, as examples:
- if the OS shows 1 screen pixel as a 1x1 actual physical element, then the function returns 1.0,
- if it shows 1 screen pixel as a 2x2 block of pixels, then the function returns 2.0,
etc.

IDK much about android though, nor how DPI scaling relates to the above categories.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Post Reply

Who is online

Users browsing this forum: Amazon [Bot], Bing [Bot], Google [Bot] and 6 guests