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:
The documentation says a 2.0 means a highdpi screen but I dont sure if its accordingly to the table I show.
How is related the output of love.window.getDPIScale() with DPI categories?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Prole
- Posts: 16
- Joined: Wed May 15, 2019 12:41 am
- Location: Valparaiso, Chile.
- 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?
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.
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 True 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.
Who is online
Users browsing this forum: Bing [Bot] and 3 guests