Difference between revisions of "NoHighDPI"
m |
|||
(One intermediate revision by one other user not shown) | |||
Line 20: | Line 20: | ||
*[https://love2d.org/forums/viewtopic.php?f=5&t=87083 Forum Thread] | *[https://love2d.org/forums/viewtopic.php?f=5&t=87083 Forum Thread] | ||
*[https://github.com/FloatingBanana/NoHighDPI Github] | *[https://github.com/FloatingBanana/NoHighDPI Github] | ||
+ | |||
+ | ---- | ||
+ | This library is useless since LÖVE 11.3 allows to disable automomatic DPI scaling by setting t.window.usedpiscale = false in conf.lua | ||
{{#set:LOVE Version=11.1}} | {{#set:LOVE Version=11.1}} | ||
− | {{#set:Description=Disable High DPI scaling on Android devices.}} | + | {{#set:Description=Disable High DPI scaling on Android devices. (useless since LÖVE 11.3)}} |
{{#set:Keyword=Resolution}} | {{#set:Keyword=Resolution}} | ||
{{#set:License=MIT License}} | {{#set:License=MIT License}} | ||
{{#set:Author=User:Floatingbanana}} | {{#set:Author=User:Floatingbanana}} | ||
[[Category:Libraries]] | [[Category:Libraries]] | ||
+ | == Other Languages == | ||
+ | {{i18n|NoHighDPI}} |
Latest revision as of 01:38, 10 May 2020
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!
This library is useless since LÖVE 11.3 allows to disable automomatic DPI scaling by setting t.window.usedpiscale = false in conf.lua
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info