Fixing possible crash when GDISP_NEED_TEXT_WORDWRAP is enabled.
This commit is contained in:
parent
05e2969633
commit
b9b555eae2
@ -7,6 +7,7 @@
|
||||
FEATURE: Added EXC7200 driver
|
||||
FEATURE: Added STM32F439i-EVAL board files
|
||||
FIX: Fixed crash when passing NULL to gwinSetStyle()
|
||||
FIX: Fixed potential crash when GDISP_NEED_TEXT_WORDWRAP is turned on
|
||||
|
||||
|
||||
*** Release 2.6 ***
|
||||
|
@ -3170,7 +3170,10 @@ void gdispGDrawBox(GDisplay *g, coord_t x, coord_t y, coord_t cx, coord_t cy, co
|
||||
/* Callback to render string boxes with word wrap. */
|
||||
#if GDISP_NEED_TEXT_WORDWRAP
|
||||
static bool mf_countline_callback(mf_str line, uint16_t count, void *state) {
|
||||
int *linecount = (int*)state;
|
||||
(void) line;
|
||||
(void) count;
|
||||
|
||||
uint16_t *linecount = (uint16_t*)state;
|
||||
(*linecount)++;
|
||||
|
||||
return TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user