Skip to content
Snippets Groups Projects
Commit 55086900 authored by pippin's avatar pippin
Browse files

apps: remove extra state setting in cap-touch and worms demos

parent e3cc7c46
No related branches found
No related tags found
1 merge request!54st3m: wrap rendered frames in save/restore pair
Pipeline #6145 passed
...@@ -70,9 +70,6 @@ class CapTouchDemo(application.Application): ...@@ -70,9 +70,6 @@ class CapTouchDemo(application.Application):
def draw(self, ctx: Context) -> None: def draw(self, ctx: Context) -> None:
# print(self.last_calib) # print(self.last_calib)
# TODO (q3k) bug: we have to do this, otherwise we have horrible blinking
ctx.rgb(1, 1, 1)
ctx.rgb(0, 0, 0).rectangle(-120, -120, 240, 240).fill() ctx.rgb(0, 0, 0).rectangle(-120, -120, 240, 240).fill()
for i, dot in enumerate(self.dots): for i, dot in enumerate(self.dots):
dot.draw(i, ctx) dot.draw(i, ctx)
......
...@@ -49,14 +49,6 @@ class AppWorms(Application): ...@@ -49,14 +49,6 @@ class AppWorms(Application):
def draw(self, ctx: Context) -> None: def draw(self, ctx: Context) -> None:
if self.bufn <= 5: if self.bufn <= 5:
# TODO (q3k) bug: we have to do this, otherwise we have horrible blinking
ctx.rgb(*BLUE).rectangle(-120, -120, 240, 240).fill()
ctx.rgb(1, 1, 1)
ctx.rgb(*BLUE).rectangle(-120, -120, 240, 240).fill()
ctx.rgb(1, 1, 1)
ctx.rgb(*BLUE).rectangle(-120, -120, 240, 240).fill() ctx.rgb(*BLUE).rectangle(-120, -120, 240, 240).fill()
ctx.text_align = ctx.CENTER ctx.text_align = ctx.CENTER
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment