You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context:
Running code natively on new 3ds XL from SD card
Code:
function love.load()
love.graphics.set3D(false)
end
function love.draw(screen)
if screen == "top" then
love.graphics.rectangle("line", 0, 0, 400, 240)
love.graphics.print(love.graphics.getWidth(screen), 50, 50)
end
if screen == "bottom" then
love.graphics.rectangle("line", 0, 0, 320, 240)
love.graphics.print(love.graphics.getWidth(screen), 50, 50)
end
end
Output:
(screenshot of 3ds)
What was Expected?
love.graphics.getWidth(screen) should have returned 320 when screen == "bottom", but it returned 400.
I also tried deliberately setting love.graphics.getWidth(screen) to a local variable as follows:
function love.draw(screen)
local width = love.graphics.getWidth(screen)
if screen == "top" then
love.graphics.rectangle("line", 0, 0, 400, 240)
love.graphics.print(width, 50, 50)
end
if screen == "bottom" then
love.graphics.rectangle("line", 0, 0, 320, 240)
love.graphics.print(width, 50, 50)
end
end
Software Version
3.0.1
What Happened?
Context:
Running code natively on new 3ds XL from SD card
Code:
Output:
(screenshot of 3ds)
What was Expected?
love.graphics.getWidth(screen) should have returned 320 when screen == "bottom", but it returned 400.
I also tried deliberately setting love.graphics.getWidth(screen) to a local variable as follows:
with no success.
Code to Reproduce
Console
Nintendo 3DS
Firmware Version(s)
11.17.0-50U
Custom Firmware Version
Custom Luma3DS based off 13.1
Execution Method
Homebrew Menu
Code of Conduct
The text was updated successfully, but these errors were encountered: