mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-16 08:11:35 +02:00
Android SCALING fixes (#298)
* android fixes for mods and saves * perhaps this is the true scaling android issue fix
This commit is contained in:
@@ -542,7 +542,10 @@ end
|
||||
local function bakeBorderFill(self, block)
|
||||
local border = self.map.tileset.blocks[block + 1]
|
||||
if not border then return end
|
||||
local canvas = love.graphics.newCanvas(32, 32)
|
||||
-- 32x32 real pixels: a DPI-scaled canvas would bake the border block at a
|
||||
-- fractional texel size and the repeat-wrapped image would then tile at
|
||||
-- non-square pixels (#208, see src/render/PixelCanvas.lua)
|
||||
local canvas = require("src.render.PixelCanvas").new(32, 32)
|
||||
love.graphics.push("all")
|
||||
love.graphics.setCanvas(canvas)
|
||||
love.graphics.clear(1, 1, 1, 1)
|
||||
|
||||
Reference in New Issue
Block a user