|
|
|
@ -1,4 +1,4 @@
|
|
|
|
/* $Id: gui.c,v 1.15 2013/02/28 23:43:19 steffen Exp $ */
|
|
|
|
/* $Id: gui.c,v 1.16 2013/03/01 19:56:56 steffen Exp $ */
|
|
|
|
/***************************************************************************
|
|
|
|
/***************************************************************************
|
|
|
|
* gui.c
|
|
|
|
* gui.c
|
|
|
|
*
|
|
|
|
*
|
|
|
|
@ -153,12 +153,12 @@ int gui_event (GUIEvent event) {
|
|
|
|
winpos.y = event.mousepos.y - currentwin->y;
|
|
|
|
winpos.y = event.mousepos.y - currentwin->y;
|
|
|
|
|
|
|
|
|
|
|
|
item = currentwin->focus;
|
|
|
|
item = currentwin->focus;
|
|
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < GUI_MAX_ITEM; i++) if (currentwin->items[i] != NULL)
|
|
|
|
for (i = 0; i < GUI_MAX_ITEM; i++) if (currentwin->items[i] != NULL)
|
|
|
|
if (GUI_ITEM_IS_INSIDE (currentwin->items[i], winpos))
|
|
|
|
if (GUI_ITEM_IS_INSIDE (currentwin->items[i], winpos))
|
|
|
|
item = currentwin->items[i];
|
|
|
|
item = currentwin->items[i];
|
|
|
|
|
|
|
|
|
|
|
|
// d_printf ("item:%p , type:%d , focus:%p", item, item ? item->type : -1, currentwin->focus);
|
|
|
|
d_printf ("item:%p , type:%d , focus:%p , event:%d", item, item ? item->type : -1, currentwin->focus, event.event);
|
|
|
|
|
|
|
|
|
|
|
|
if (item) switch (item->type) {
|
|
|
|
if (item) switch (item->type) {
|
|
|
|
case (GUI_BUTTON):
|
|
|
|
case (GUI_BUTTON):
|
|
|
|
|