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

st3m_gfx: add save/restore around textviews

parent 132bf340
No related branches found
No related tags found
1 merge request!107st3m_gfx: add save/restore around textviews
Pipeline #6486 passed
......@@ -350,6 +350,8 @@ void st3m_gfx_show_textview(st3m_gfx_textview_t *tv) {
st3m_ctx_desc_t *target = st3m_gfx_drawctx_free_get(portMAX_DELAY);
ctx_save(target->ctx);
// Draw background.
ctx_rgb(target->ctx, 0, 0, 0);
ctx_rectangle(target->ctx, -120, -120, 240, 240);
......@@ -391,6 +393,8 @@ void st3m_gfx_show_textview(st3m_gfx_textview_t *tv) {
ctx_move_to(target->ctx, 0, 100);
ctx_text(target->ctx, st3m_version);
ctx_restore(target->ctx);
st3m_gfx_drawctx_pipe_put(target);
}
......
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