improve window animation for 32bit lcd

This commit is contained in:
xianjimli 2020-09-11 15:17:55 +08:00
parent 6483b5cbe5
commit a701673a32
2 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,7 @@
* 2020/09/11
* 支持 packed 图片。
* 增加 [如何使用 packed 图](docs/how_to_use_packed_image.md)
* 修复32位LCD窗口动画截图的问题感谢朝泽提供补丁
* 2020/09/10
* 重构 widget。

View File

@ -152,6 +152,7 @@ ret_t window_manager_default_snap_curr_window(widget_t* widget, widget_t* curr_w
canvas_offline_flush_bitmap(canvas);
ENSURE(canvas_offline_bitmap_move_to_new_bitmap(canvas, img) == RET_OK);
ENSURE(canvas_offline_destroy(canvas) == RET_OK);
img->flags |= BITMAP_FLAG_OPAQUE;
#endif
return RET_OK;
@ -237,6 +238,7 @@ ret_t window_manager_default_snap_prev_window(widget_t* widget, widget_t* prev_w
canvas_offline_flush_bitmap(canvas);
ENSURE(canvas_offline_bitmap_move_to_new_bitmap(canvas, img) == RET_OK);
ENSURE(canvas_offline_destroy(canvas) == RET_OK);
img->flags |= BITMAP_FLAG_OPAQUE;
#endif /*WITH_NANOVG_GPU*/
if (dialog_highlighter != NULL) {