jfkeys: fix fkeys not updating after changing text/image

This commit is contained in:
Lephenixnoir 2022-06-21 09:19:10 +01:00
parent 11868d85ee
commit 7ebc3b802c
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495
2 changed files with 3 additions and 1 deletions

View file

@ -60,7 +60,7 @@ typedef struct {
#ifdef FXCG50 #ifdef FXCG50
char const *labels; char const *labels;
char const *overrides[6]; char const *overrides[6];
#endif #endif
} jfkeys; } jfkeys;

View file

@ -23,6 +23,7 @@ void jfkeys_set(jfkeys *f, bopti_image_t const *img)
{ {
f->img = img; f->img = img;
f->level = 0; f->level = 0;
f->widget.update = true;
} }
#endif /* FX9860G */ #endif /* FX9860G */
@ -42,6 +43,7 @@ void jfkeys_set(jfkeys *f, char const *labels)
{ {
f->labels = labels; f->labels = labels;
f->level = 0; f->level = 0;
f->widget.update = true;
} }
/* get_level(): Find the level inside a function definition */ /* get_level(): Find the level inside a function definition */