diff --git a/src/base/canvas.c b/src/base/canvas.c index 2a5adfef0..349228904 100644 --- a/src/base/canvas.c +++ b/src/base/canvas.c @@ -672,7 +672,8 @@ ret_t canvas_draw_image_3patch_y(canvas_t* c, bitmap_t* img, rect_t* dst) { canvas_draw_image(c, img, &s, &d); canvas_untranslate(c, dst->x, dst->y); - + (void)dst_w; + return RET_OK; } @@ -845,6 +846,10 @@ ret_t canvas_draw_image_9patch(canvas_t* c, bitmap_t* img, rect_t* dst) { canvas_untranslate(c, dst->x, dst->y); + (void)x; + (void)y; + (void)dst_w; + return RET_OK; } diff --git a/src/base/lcd.c b/src/base/lcd.c index 325e03413..f136566e0 100644 --- a/src/base/lcd.c +++ b/src/base/lcd.c @@ -1,4 +1,4 @@ -/** +/** * File: lcd.c * Author: Li XianJing * Brief: lcd interface @@ -150,7 +150,7 @@ wh_t lcd_measure_text(lcd_t* lcd, wchar_t* str, int32_t nr) { } ret_t lcd_draw_text(lcd_t* lcd, wchar_t* str, int32_t nr, xy_t x, xy_t y) { - return_value_if_fail(lcd != NULL && lcd->draw_text != NULL && str != NULL, 0); + return_value_if_fail(lcd != NULL && lcd->draw_text != NULL && str != NULL, RET_OK); return lcd->draw_text(lcd, str, nr, x, y); }