improve for wheel_event_cast

This commit is contained in:
lixianjing 2021-03-30 14:36:55 +08:00
parent f4cabf6262
commit 2a2dd47ff6
2 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@
2021/03/29
* 修复 slider 控件的 bar\_size 属性过大画面不正常的问题(感谢智明提供补丁)
* 修改 mutable\_image 支持在 desiger 界面上面不刷新的功能(感谢智明提供补丁)
* 修复WHEEL\_BEFORE\_CHILDREN事件无法通过wheel\_event\_cast转换的问题感谢福明提供补丁
2021/03/28
* 修改一些注释错误。

View File

@ -24,7 +24,7 @@
wheel_event_t* wheel_event_cast(event_t* event) {
return_value_if_fail(event != NULL, NULL);
return_value_if_fail(event->type == EVT_WHEEL, NULL);
return_value_if_fail(event->type == EVT_WHEEL || event->type == EVT_WHEEL_BEFORE_CHILDREN, NULL);
return_value_if_fail(event->size == sizeof(wheel_event_t), NULL);
return (wheel_event_t*)event;