Difference between revisions of "NoHighDPI"

(Created page with "== NoHighDPI == This library allows you to disable High DPI scaling on Android devices. == How to use == You just need to do this: <source lang=lua>nohdpi = require "nohigh...")
 
m
Line 1: Line 1:
== NoHighDPI ==
 
 
This library allows you to disable High DPI scaling on Android devices.
 
This library allows you to disable High DPI scaling on Android devices.
  

Revision as of 20:32, 27 August 2019

This library allows you to disable High DPI scaling on Android devices.

How to use

You just need to do this:

nohdpi = require "nohighdpi"

function love.load()
    --Pass "graphics", "mouse" and/or "touch"
    --as arguments to replace the given modules.
    --If you don't give any arguments, then
    --all modules will be replaced.
    nohighdpi:replace()
end

And voilà, you can use LÖVE normally without worrying about DPI scaling!