diff options
author | Uros Majstorovic <majstor@majstor.org> | 2020-08-24 18:12:41 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2020-08-24 18:12:41 +0200 |
commit | d7bdbcf7e6881065200b21a02522a68cf4fb9881 (patch) | |
tree | 67712572568ae37a215d872bf1921939b7164a20 /fw/fe310/eos/eve/widget/textw.c | |
parent | 1e5eb7cb910e6f23c69c2c986b6373e9f9abb980 (diff) |
fixed bug in form constructor; free widget improved
Diffstat (limited to 'fw/fe310/eos/eve/widget/textw.c')
-rw-r--r-- | fw/fe310/eos/eve/widget/textw.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fw/fe310/eos/eve/widget/textw.c b/fw/fe310/eos/eve/widget/textw.c index 5835a57..dd11c11 100644 --- a/fw/fe310/eos/eve/widget/textw.c +++ b/fw/fe310/eos/eve/widget/textw.c @@ -202,7 +202,12 @@ static void _draw_line(EVETextWidget *widget, EVEWindow *window, uint16_t l, uin if (!s) eve_cmd_dl(COLOR_MASK(0 ,0 ,0 ,0)); eve_cmd_dl(VERTEX2F(_widget->g.x + x1, _widget->g.y + l * widget->font->h)); eve_cmd_dl(VERTEX2F(_widget->g.x + x2, _widget->g.y + (l + 1) * widget->font->h)); - if (!s) eve_cmd_dl(COLOR_MASK(1 ,1 ,1 ,1)); + if (!s) { + eve_cmd_dl(COLOR_MASK(1 ,1 ,1 ,1)); + eve_cmd_dl(BEGIN(EVE_LINES)); + eve_cmd_dl(VERTEX2F(_widget->g.x + x1, _widget->g.y + (l + 1) * widget->font->h)); + eve_cmd_dl(VERTEX2F(_widget->g.x + x2, _widget->g.y + (l + 1) * widget->font->h)); + } eve_cmd_dl(END()); if (len) { if (s) eve_cmd_dl(COLOR_RGBC(window->color_bg)); |