|
|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
/* $Id: gui.c,v 1.12 2013/02/27 22:21:35 steffen Exp $ */
|
|
|
|
|
/* $Id: gui.c,v 1.13 2013/02/27 23:50:17 steffen Exp $ */
|
|
|
|
|
/***************************************************************************
|
|
|
|
|
* gui.c
|
|
|
|
|
*
|
|
|
|
|
@ -157,7 +157,7 @@ int gui_event (GUIEvent event) {
|
|
|
|
|
if (GUI_ITEM_IS_INSIDE (currentwin->items[i], winpos))
|
|
|
|
|
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", item, item ? item->type : -1, currentwin->focus);
|
|
|
|
|
|
|
|
|
|
if (item) switch (item->type) {
|
|
|
|
|
case (GUI_BUTTON):
|
|
|
|
|
@ -183,7 +183,7 @@ int gui_event (GUIEvent event) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* no gui active nor any window is responsible.. */
|
|
|
|
|
d_printf ("no event..");
|
|
|
|
|
// d_printf ("no event..");
|
|
|
|
|
switch (event.event) {
|
|
|
|
|
case (EGUI_MOUSERELEASED):
|
|
|
|
|
draw_mousebtnup (event.mousepos.x, event.mousepos.y, event.mousebtn);
|
|
|
|
|
|