Debug Draw not working under Linux

Tried using the debugDraw function the other day under Linux but it doesn’t work.
I’m using Sway (Wayland) not sure if that is related, and with the debug overlay enabled.

I have tried in 1.1 and 1.0

On Linux

output

On MacOS

debug-draw-macos

Sample main.lua

import "CoreLibs/graphics"

local gfx <const> = playdate.graphics

local x = 400/2
local y = 240/2
local r = 1

function playdate.update()
    x = (x + 1) % 400
    y = (y + 1) % 240
    r = (r + .1) % 10
end

function playdate.debugDraw()
    gfx.drawCircleAtPoint(x, y, r + 2)
end

Thanks for the report, this will be fixed in the next Simulator update.

1 Like