Android SCALING fixes (#298)

* android fixes for mods and saves

* perhaps this is the true scaling android issue fix
This commit is contained in:
bryanthaboi
2026-07-27 09:27:24 -04:00
committed by GitHub
parent 25df838b45
commit 3448fae3f5
6 changed files with 118 additions and 11 deletions
+14
View File
@@ -96,6 +96,20 @@ function Game:load()
end
Logger.info("game loaded")
-- Scaling bug reports (#87, #208) are unanswerable without these three
-- numbers: LOVE units, drawable pixels, and the integer physical pixels
-- per GB pixel the renderer settled on. Cheap, once, and it turns "it
-- looks stretched" into something reproducible.
if love.graphics and love.graphics.getDimensions then
local ww, wh = love.graphics.getDimensions()
local pw, ph = ww, wh
if love.graphics.getPixelDimensions then
pw, ph = love.graphics.getPixelDimensions()
end
Logger.info(string.format(
"display: %dx%d units, %dx%d px, fit scale %d px/GB px",
ww, wh, pw, ph, Renderer:fitScale()))
end
end
-- the merged field.boot: spawn, names, money and the naming presets a