Fixing compiler warnings
This commit is contained in:
parent
d3cea5c390
commit
58f6e0452e
1 changed files with 10 additions and 2 deletions
|
@ -3248,7 +3248,12 @@ void gdispGDrawBox(GDisplay *g, coord_t x, coord_t y, coord_t cx, coord_t cy, co
|
||||||
}
|
}
|
||||||
|
|
||||||
void gdispGDrawStringBox(GDisplay *g, coord_t x, coord_t y, coord_t cx, coord_t cy, const char* str, font_t font, color_t color, justify_t justify) {
|
void gdispGDrawStringBox(GDisplay *g, coord_t x, coord_t y, coord_t cx, coord_t cy, const char* str, font_t font, color_t color, justify_t justify) {
|
||||||
|
#if GDISP_NEED_TEXT_WORDWRAP
|
||||||
|
wrapParameters_t wrapParameters;
|
||||||
|
#endif
|
||||||
|
|
||||||
MUTEX_ENTER(g);
|
MUTEX_ENTER(g);
|
||||||
|
|
||||||
g->t.font = font;
|
g->t.font = font;
|
||||||
g->t.clipx0 = x;
|
g->t.clipx0 = x;
|
||||||
g->t.clipy0 = y;
|
g->t.clipy0 = y;
|
||||||
|
@ -3272,7 +3277,6 @@ void gdispGDrawBox(GDisplay *g, coord_t x, coord_t y, coord_t cx, coord_t cy, co
|
||||||
|
|
||||||
/* Render */
|
/* Render */
|
||||||
#if GDISP_NEED_TEXT_WORDWRAP
|
#if GDISP_NEED_TEXT_WORDWRAP
|
||||||
wrapParameters_t wrapParameters;
|
|
||||||
wrapParameters.x = x;
|
wrapParameters.x = x;
|
||||||
wrapParameters.y = y;
|
wrapParameters.y = y;
|
||||||
wrapParameters.font = font;
|
wrapParameters.font = font;
|
||||||
|
@ -3289,7 +3293,12 @@ void gdispGDrawBox(GDisplay *g, coord_t x, coord_t y, coord_t cx, coord_t cy, co
|
||||||
}
|
}
|
||||||
|
|
||||||
void gdispGFillStringBox(GDisplay *g, coord_t x, coord_t y, coord_t cx, coord_t cy, const char* str, font_t font, color_t color, color_t bgcolor, justify_t justify) {
|
void gdispGFillStringBox(GDisplay *g, coord_t x, coord_t y, coord_t cx, coord_t cy, const char* str, font_t font, color_t color, color_t bgcolor, justify_t justify) {
|
||||||
|
#if GDISP_NEED_TEXT_WORDWRAP
|
||||||
|
wrapParameters_t wrapParameters;
|
||||||
|
#endif
|
||||||
|
|
||||||
MUTEX_ENTER(g);
|
MUTEX_ENTER(g);
|
||||||
|
|
||||||
g->p.cx = cx;
|
g->p.cx = cx;
|
||||||
g->p.cy = cy;
|
g->p.cy = cy;
|
||||||
g->t.font = font;
|
g->t.font = font;
|
||||||
|
@ -3321,7 +3330,6 @@ void gdispGDrawBox(GDisplay *g, coord_t x, coord_t y, coord_t cx, coord_t cy, co
|
||||||
|
|
||||||
/* Render */
|
/* Render */
|
||||||
#if GDISP_NEED_TEXT_WORDWRAP
|
#if GDISP_NEED_TEXT_WORDWRAP
|
||||||
wrapParameters_t wrapParameters;
|
|
||||||
wrapParameters.x = x;
|
wrapParameters.x = x;
|
||||||
wrapParameters.y = y;
|
wrapParameters.y = y;
|
||||||
wrapParameters.font = font;
|
wrapParameters.font = font;
|
||||||
|
|
Loading…
Add table
Reference in a new issue