mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-30 15:32:38 +00:00
Changed calls from jwidget_pick to Widget::pick.
This commit is contained in:
parent
3d679357bc
commit
19483aed3c
@ -329,7 +329,7 @@ bool jmanager_generate_messages(JWidget manager)
|
||||
|
||||
JI_LIST_FOR_EACH(proc_windows_list, link) {
|
||||
window = reinterpret_cast<JWidget>(link->data);
|
||||
widget = jwidget_pick(window, jmouse_x(0), jmouse_y(0));
|
||||
widget = window->pick(jmouse_x(0), jmouse_y(0));
|
||||
if (widget)
|
||||
break;
|
||||
}
|
||||
|
@ -716,7 +716,7 @@ Widget* Widget::pick(int x, int y)
|
||||
picked = this;
|
||||
|
||||
JI_LIST_FOR_EACH(this->children, link) {
|
||||
inside = jwidget_pick(reinterpret_cast<Widget*>(link->data), x, y);
|
||||
inside = reinterpret_cast<Widget*>(link->data)->pick(x, y);
|
||||
if (inside) {
|
||||
picked = inside;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user