mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-21 13:09:54 +02:00
fix(ios): present voxel pipeline canvases
This commit is contained in:
@@ -120,7 +120,7 @@ end
|
|||||||
-- shape (love.graphics.newCanvas), so accept either and nothing else.
|
-- shape (love.graphics.newCanvas), so accept either and nothing else.
|
||||||
local function isCanvas(v)
|
local function isCanvas(v)
|
||||||
if type(v) == "userdata" then
|
if type(v) == "userdata" then
|
||||||
return type(v.typeOf) == "function" and v:typeOf("Canvas") == true
|
return type(v.getWidth) == "function" and type(v.getHeight) == "function"
|
||||||
end
|
end
|
||||||
if type(v) == "table" then
|
if type(v) == "table" then
|
||||||
return type(v.getWidth) == "function" and type(v.getHeight) == "function"
|
return type(v.getWidth) == "function" and type(v.getHeight) == "function"
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ Renderer.MAX_UI_HEIGHT = 576
|
|||||||
-- would otherwise take the frame down with it.
|
-- would otherwise take the frame down with it.
|
||||||
local function isCanvas(v)
|
local function isCanvas(v)
|
||||||
if type(v) == "userdata" then
|
if type(v) == "userdata" then
|
||||||
return type(v.typeOf) == "function" and v:typeOf("Canvas") == true
|
return type(v.getWidth) == "function" and type(v.getHeight) == "function"
|
||||||
end
|
end
|
||||||
if type(v) == "table" then
|
if type(v) == "table" then
|
||||||
return type(v.getWidth) == "function" and type(v.getHeight) == "function"
|
return type(v.getWidth) == "function" and type(v.getHeight) == "function"
|
||||||
@@ -602,7 +602,11 @@ function Renderer:endFrame(zones, worldZones)
|
|||||||
-- runs, so dialogs, menus and the HUD sit on top as usual.
|
-- runs, so dialogs, menus and the HUD sit on top as usual.
|
||||||
love.graphics.setColor(1, 1, 1, 1)
|
love.graphics.setColor(1, 1, 1, 1)
|
||||||
love.graphics.setScissor(0, 0, ww, wh)
|
love.graphics.setScissor(0, 0, ww, wh)
|
||||||
|
if love.system and love.system.getOS and love.system.getOS() == "iOS" then
|
||||||
|
love.graphics.draw(self.worldOverride, 0, wh, 0, 1 / dpiX, -1 / dpiY)
|
||||||
|
else
|
||||||
love.graphics.draw(self.worldOverride, 0, 0, 0, 1 / dpiX, 1 / dpiY)
|
love.graphics.draw(self.worldOverride, 0, 0, 0, 1 / dpiX, 1 / dpiY)
|
||||||
|
end
|
||||||
love.graphics.setScissor()
|
love.graphics.setScissor()
|
||||||
-- the screen-space overlays the flat path draws over its composite
|
-- the screen-space overlays the flat path draws over its composite
|
||||||
local fade = self.worldFadeAlpha
|
local fade = self.worldFadeAlpha
|
||||||
|
|||||||
Reference in New Issue
Block a user