Page 1 of 1
How is related the output of love.window.getDPIScale() with DPI categories?
Posted: Thu May 21, 2020 10:07 pm
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:
The documentation says a 2.0 means a highdpi screen but I dont sure if its accordingly to the table I show.
Re: How is related the output of love.window.getDPIScale() with DPI categories?
Posted: Thu May 21, 2020 10:20 pm
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.