fix window_manager_update_cursor

This commit is contained in:
lixianjing 2019-06-18 11:01:38 +08:00
parent bda043d146
commit aa2c092c95
2 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,8 @@
# 最新动态
* 2019/06/18
* 修改window\_manager\_update\_cursor的BUG(感谢智明提供补丁)
* 修改main\_loop\_post\_pointer\_event的BUG(感谢朝泽提供补丁)
* 2019/06/17
* SDL FB模式启用脏矩形。
* 增加lcd\_mem\_special用于实现一些特殊的FB格式。

View File

@ -556,16 +556,14 @@ static ret_t window_manager_update_cursor(widget_t* widget, int32_t x, int32_t y
int32_t oldy = wm->r_cursor.y;
rect_t r = rect_init(oldx - hw, oldy - hh, w, h);
widget->dirty = FALSE;
widget_invalidate(widget, &r);
window_manager_invalidate(widget, &r);
wm->r_cursor.x = x;
wm->r_cursor.y = y;
r = rect_init(x - hw, y - hh, w, h);
widget->dirty = FALSE;
widget_invalidate(widget, &r);
window_manager_invalidate(widget, &r);
}
return RET_OK;