mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
bugfix with LV_APP_EFFECT_OPA_ANIM 0 bugfif + letter draw bugfix
This commit is contained in:
parent
0f5e5f6ed6
commit
3019787dcf
@ -840,7 +840,7 @@ static lv_action_res_t lv_app_win_minim_anim_create(lv_app_inst_t * app)
|
||||
a.end = cords.y1;
|
||||
a.start = 0;
|
||||
a.fp = (anim_fp_t) lv_obj_set_y;
|
||||
#if LV_APP_EFFECT_OPA == 0
|
||||
#if LV_APP_EFFECT_OPA_ANIM == 0
|
||||
a.end_cb = (void (*)(void *))lv_app_win_close_anim_cb;
|
||||
#endif
|
||||
anim_create(&a);
|
||||
|
@ -128,10 +128,10 @@ void lv_vletter(const point_t * pos_p, const area_t * mask_p,
|
||||
uint8_t col_bit;
|
||||
uint8_t col_byte_cnt;
|
||||
|
||||
cord_t col_start = pos_p->x >= mask_p->x1 ? 0 : mask_p->x1 - pos_p->x;
|
||||
cord_t col_end = pos_p->x + letter_w <= mask_p->x2 ? letter_w : mask_p->x2 - pos_p->x + 1;
|
||||
cord_t row_start = pos_p->y >= mask_p->y1 ? 0 : mask_p->y1 - pos_p->y;
|
||||
cord_t row_end = pos_p->y + letter_h <= mask_p->y2 ? letter_h : mask_p->y2 - pos_p->y + 1;
|
||||
cord_t col_start = pos_p->x > mask_p->x1 ? 0 : mask_p->x1 - pos_p->x;
|
||||
cord_t col_end = pos_p->x + letter_w < mask_p->x2 ? letter_w : mask_p->x2 - pos_p->x + 1;
|
||||
cord_t row_start = pos_p->y > mask_p->y1 ? 0 : mask_p->y1 - pos_p->y;
|
||||
cord_t row_end = pos_p->y + letter_h < mask_p->y2 ? letter_h : mask_p->y2 - pos_p->y + 1;
|
||||
|
||||
/*Set a pointer on VDB to the first pixel of the letter*/
|
||||
vdb_buf_tmp += ((pos_p->y - vdb_p->vdb_area.y1) * vdb_width)
|
||||
@ -145,7 +145,7 @@ void lv_vletter(const point_t * pos_p, const area_t * mask_p,
|
||||
|
||||
for(row = row_start; row < row_end; row ++) {
|
||||
col_byte_cnt = 0;
|
||||
col_bit = 7 - ((col_start / 2) % 8);
|
||||
col_bit = 7 - (col_start % 8);
|
||||
for(col = col_start; col < col_end; col ++) {
|
||||
|
||||
if((*map_p & (1 << col_bit)) != 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user