mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-30 02:58:26 +08:00
fix window_manager_update_cursor
This commit is contained in:
parent
bda043d146
commit
aa2c092c95
@ -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格式。
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user