chore: fix warnings
This commit is contained in:
@@ -616,7 +616,7 @@ static void refr_area_part(lv_draw_ctx_t * draw_ctx)
|
|||||||
/* Below the `area_p` area will be redrawn into the draw buffer.
|
/* Below the `area_p` area will be redrawn into the draw buffer.
|
||||||
* In single buffered mode wait here until the buffer is freed.
|
* In single buffered mode wait here until the buffer is freed.
|
||||||
* In full double buffered mode wait here while the buffers are swapped and a buffer becomes available*/
|
* In full double buffered mode wait here while the buffers are swapped and a buffer becomes available*/
|
||||||
bool full_sized = draw_buf->size == disp_refr->driver->hor_res * disp_refr->driver->ver_res;
|
bool full_sized = draw_buf->size == (uint32_t)disp_refr->driver->hor_res * disp_refr->driver->ver_res;
|
||||||
if((draw_buf->buf1 && !draw_buf->buf2) ||
|
if((draw_buf->buf1 && !draw_buf->buf2) ||
|
||||||
(draw_buf->buf1 && draw_buf->buf2 && full_sized)) {
|
(draw_buf->buf1 && draw_buf->buf2 && full_sized)) {
|
||||||
while(draw_buf->flushing) {
|
while(draw_buf->flushing) {
|
||||||
@@ -1183,7 +1183,7 @@ static void draw_buf_flush(lv_disp_t * disp)
|
|||||||
|
|
||||||
/* In partial double buffered mode wait until the other buffer is freed
|
/* In partial double buffered mode wait until the other buffer is freed
|
||||||
* and driver is ready to receive the new buffer */
|
* and driver is ready to receive the new buffer */
|
||||||
bool full_sized = draw_buf->size == disp_refr->driver->hor_res * disp_refr->driver->ver_res;
|
bool full_sized = draw_buf->size == (uint32_t)disp_refr->driver->hor_res * disp_refr->driver->ver_res;
|
||||||
if(draw_buf->buf1 && draw_buf->buf2 && !full_sized) {
|
if(draw_buf->buf1 && draw_buf->buf2 && !full_sized) {
|
||||||
while(draw_buf->flushing) {
|
while(draw_buf->flushing) {
|
||||||
if(disp_refr->driver->wait_cb) disp_refr->driver->wait_cb(disp_refr->driver);
|
if(disp_refr->driver->wait_cb) disp_refr->driver->wait_cb(disp_refr->driver);
|
||||||
|
|||||||
@@ -1376,6 +1376,8 @@ void draw_border_generic(lv_draw_ctx_t * draw_ctx, const lv_area_t * outer_area,
|
|||||||
|
|
||||||
#else /*LV_DRAW_COMPLEX*/
|
#else /*LV_DRAW_COMPLEX*/
|
||||||
LV_UNUSED(blend_mode);
|
LV_UNUSED(blend_mode);
|
||||||
|
LV_UNUSED(rout);
|
||||||
|
LV_UNUSED(rin);
|
||||||
if(!mask_any) {
|
if(!mask_any) {
|
||||||
draw_border_simple(draw_ctx, outer_area, inner_area, color, opa);
|
draw_border_simple(draw_ctx, outer_area, inner_area, color, opa);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user