fix window_manager_paint_normal for fragment lcd

This commit is contained in:
xianjimli 2020-02-04 17:14:10 +08:00
parent 6a7254edcf
commit e7dfe26326
2 changed files with 6 additions and 0 deletions

View File

@ -1,4 +1,7 @@
# 最新动态
* 2020/02/04
* 片段 lcd 的片段内存大小刚好等于脏矩形大小的问题(感谢智明提供补丁)
* 2020/01/28
* 优化list view paint children
* 增加emitter\_forward

View File

@ -640,6 +640,9 @@ static ret_t window_manager_paint_normal(widget_t* widget, canvas_t* c) {
tmp_h = h % tmp_h;
}
r.h = tmp_h;
if (r.h == 0) {
break;
}
canvas_t* c = native_window_get_canvas(wm->native_window);
canvas_begin_frame(c, &r, LCD_DRAW_NORMAL);