improve highlight

This commit is contained in:
lixianjing 2021-07-20 15:45:54 +08:00
parent 9eb5cae07e
commit 50adf4bb51
3 changed files with 3 additions and 4 deletions

View File

@ -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表示成功
*/

View File

@ -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);

View File

@ -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) {