Changed calls from jwidget_pick to Widget::pick.

This commit is contained in:
David Capello 2010-04-19 22:41:35 -03:00
parent 3d679357bc
commit 19483aed3c
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;