From 50adf4bb51a44c89fb27ab0e21c3e7a7284653e6 Mon Sep 17 00:00:00 2001 From: lixianjing Date: Tue, 20 Jul 2021 15:45:54 +0800 Subject: [PATCH] improve highlight --- src/base/dialog_highlighter.h | 4 ++-- src/base/window_base.c | 1 - src/window_manager/window_manager_default.c | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/base/dialog_highlighter.h b/src/base/dialog_highlighter.h index 4d9886204..026fd2135 100644 --- a/src/base/dialog_highlighter.h +++ b/src/base/dialog_highlighter.h @@ -126,9 +126,9 @@ ret_t dialog_highlighter_set_bg(dialog_highlighter_t* h, bitmap_t* img); /** * @method dialog_highlighter_set_bg_clip_rect - * 设置背景图片的显示裁减区。 + * 设置背景图片的显示裁剪区。 * @param {dialog_highlighter_t*} h 对话框高亮策略对象。 - * @param {rect_t*} clip_rect 背景显示裁减区。 + * @param {rect_t*} clip_rect 背景显示裁剪区。 * * @return {ret_t} 返回RET_OK表示成功,否则表示失败。 */ diff --git a/src/base/window_base.c b/src/base/window_base.c index 470b35693..de772d371 100644 --- a/src/base/window_base.c +++ b/src/base/window_base.c @@ -40,7 +40,6 @@ ret_t window_base_on_paint_self(widget_t* widget, canvas_t* c) { } ret_t window_base_on_paint_begin(widget_t* widget, canvas_t* c) { - window_base_t* win = WINDOW_BASE(widget); font_manager_t* fm = widget_get_font_manager(widget); image_manager_t* imm = widget_get_image_manager(widget); assets_manager_t* am = widget_get_assets_manager(widget); diff --git a/src/window_manager/window_manager_default.c b/src/window_manager/window_manager_default.c index ccc3c295a..18df7e8a8 100644 --- a/src/window_manager/window_manager_default.c +++ b/src/window_manager/window_manager_default.c @@ -1378,7 +1378,7 @@ static ret_t window_manager_default_native_window_resized(widget_t* widget, void if (wm->dialog_highlighter != NULL) { bitmap_t img; - widget_t* prev = window_manager_get_prev_window(widget); + widget_t* prev = window_manager_find_prev_normal_window(widget); memset(&img, 0x00, sizeof(img)); if (prev != NULL) {