minor fixes

This commit is contained in:
Gabor Kiss-Vamosi
2018-12-22 19:08:40 +01:00
parent 1787b63599
commit f46958bb3f
2 changed files with 2 additions and 2 deletions
+2 -1
View File
@@ -164,9 +164,10 @@ void lv_style_init(void)
lv_style_btn_rel.body.border.color = LV_COLOR_MAKE(0x0b, 0x19, 0x28);
lv_style_btn_rel.body.border.width = LV_DPI / 50 >= 1 ? LV_DPI / 50 : 1;
lv_style_btn_rel.body.border.opa = LV_OPA_70;
lv_style_btn_rel.text.color = LV_COLOR_MAKE(0xff, 0xff, 0xff);
lv_style_btn_rel.body.shadow.color = LV_COLOR_GRAY;
lv_style_btn_rel.body.shadow.width = 0;
lv_style_btn_rel.text.color = LV_COLOR_MAKE(0xff, 0xff, 0xff);
lv_style_btn_rel.image.color = LV_COLOR_MAKE(0xff, 0xff, 0xff);
/*Button pressed style*/
memcpy(&lv_style_btn_pr, &lv_style_btn_rel, sizeof(lv_style_t));
-1
View File
@@ -91,7 +91,6 @@ void lv_draw_label(const lv_area_t * coords, const lv_area_t * mask, const lv_st
if(txt[line_start] == '\0') return;
}
printf("\n");
/*Align to middle*/
if(flag & LV_TXT_FLAG_CENTER) {
line_width = lv_txt_get_width(&txt[line_start], line_end - line_start,