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
1 merge request!257gfx,py: rate limit overlays
Pipeline #7535 passed
...@@ -474,6 +474,11 @@ def get_ctx(): ...@@ -474,6 +474,11 @@ def get_ctx():
return ctx.Context(dctx) return ctx.Context(dctx)
def get_overlay_ctx():
dctx = ctx._wasm.ctx_new_drawlist(240, 240)
return ctx.Context(dctx)
def display_update(subctx): def display_update(subctx):
_sim.process_events() _sim.process_events()
fbp, c = fbm.get() fbp, c = fbm.get()
......
...@@ -100,6 +100,7 @@ class Context: ...@@ -100,6 +100,7 @@ class Context:
LEFT = "left" LEFT = "left"
RIGHT = "right" RIGHT = "right"
CENTER = "center" CENTER = "center"
CLEAR = "clear"
END = "end" END = "end"
MIDDLE = "middle" MIDDLE = "middle"
BEVEL = "bevel" BEVEL = "bevel"
......
...@@ -5,5 +5,10 @@ def pipe_full(): ...@@ -5,5 +5,10 @@ def pipe_full():
return False return False
def set_overlay_height(foo):
pass
update = _sim.display_update update = _sim.display_update
get_ctx = _sim.get_ctx 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