mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-29 18:48:09 +08:00
improve for wheel_event_cast
This commit is contained in:
parent
f4cabf6262
commit
2a2dd47ff6
@ -3,6 +3,7 @@
|
||||
2021/03/29
|
||||
* 修复 slider 控件的 bar\_size 属性过大画面不正常的问题(感谢智明提供补丁)
|
||||
* 修改 mutable\_image 支持在 desiger 界面上面不刷新的功能(感谢智明提供补丁)
|
||||
* 修复WHEEL\_BEFORE\_CHILDREN事件无法通过wheel\_event\_cast转换的问题(感谢福明提供补丁)
|
||||
|
||||
2021/03/28
|
||||
* 修改一些注释错误。
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user