Skip to content
Snippets Groups Projects
Commit 4753a2e3 authored by pippin's avatar pippin Committed by pippin
Browse files

sim: add stubs for new API

Not really functional - but this is a really signficant speed boost
for actual device firmware.
parent b6fa193f
No related branches found
No related tags found
No related merge requests found
......@@ -474,6 +474,11 @@ def get_ctx():
return ctx.Context(dctx)
def get_overlay_ctx():
dctx = ctx._wasm.ctx_new_drawlist(240, 240)
return ctx.Context(dctx)
def display_update(subctx):
_sim.process_events()
fbp, c = fbm.get()
......
......@@ -100,6 +100,7 @@ class Context:
LEFT = "left"
RIGHT = "right"
CENTER = "center"
CLEAR = "clear"
END = "end"
MIDDLE = "middle"
BEVEL = "bevel"
......
......@@ -5,5 +5,10 @@ def pipe_full():
return False
def set_overlay_height(foo):
pass
update = _sim.display_update
get_ctx = _sim.get_ctx
get_overlay_ctx = _sim.get_overlay_ctx
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment