Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
card10
firmware
Commits
5b74edb2
Commit
5b74edb2
authored
Dec 31, 2021
by
Rahix
Browse files
pycardium: ctx: Flush drawlist
parent
f4b578a9
Pipeline
#5450
passed with stages
in 57 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pycardium/modules/ctx.c
View file @
5b74edb2
...
...
@@ -370,6 +370,14 @@ static mp_obj_t mp_ctx_update(mp_obj_t self_in, mp_obj_t display_in)
}
int
res
=
epic_disp_ctx
(
self
->
ctx
);
/*
* The drawlist still contains the draw commands which were just
* executed. Flush them now.
*/
ctx_drawlist_clear
(
self
->
ctx
);
/* report errors from epic_disp_ctx() */
if
(
res
<
0
)
{
mp_raise_OSError
(
-
res
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment