Tidy up debug and increase list allocation to aid debugging
This commit is contained in:
parent
8dc707d554
commit
a54170eeea
|
@ -1852,9 +1852,11 @@ static void ami_handle_msg(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
if((gwin == NULL) || (gwin->objects[OID_MAIN] == NULL)) continue;
|
if((gwin == NULL) || (gwin->objects[OID_MAIN] == NULL)) continue;
|
||||||
LOG(("while..."));
|
|
||||||
|
LOG(("RA_HandleInput(%p,%p) (gwin=%p)", gwin->objects[OID_MAIN], &code, gwin));
|
||||||
|
|
||||||
while((result = RA_HandleInput(gwin->objects[OID_MAIN], &code)) != WMHI_LASTMSG) {
|
while((result = RA_HandleInput(gwin->objects[OID_MAIN], &code)) != WMHI_LASTMSG) {
|
||||||
LOG(("%d: %d (switch)",code, result & WMHI_CLASSMASK));
|
LOG(("%d: %d (switch)",code, result & WMHI_CLASSMASK));
|
||||||
switch(result & WMHI_CLASSMASK) // class
|
switch(result & WMHI_CLASSMASK) // class
|
||||||
{
|
{
|
||||||
case WMHI_MOUSEMOVE:
|
case WMHI_MOUSEMOVE:
|
||||||
|
@ -5129,7 +5131,7 @@ void ami_scroller_hook(struct Hook *hook,Object *object,struct IntuiMessage *msg
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
printf("UNHANDLED EVENT %ld\n",msg->Class);
|
LOG(("IDCMP hook unhandled event: %d\n", msg->Class));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// ReplyMsg((struct Message *)msg);
|
// ReplyMsg((struct Message *)msg);
|
||||||
|
|
|
@ -34,7 +34,8 @@ struct MinList *NewObjList(void)
|
||||||
|
|
||||||
struct MinList *objlist;
|
struct MinList *objlist;
|
||||||
|
|
||||||
objlist = (struct MinList *)AllocVecTagList(sizeof(struct MinList), NULL);
|
objlist = (struct MinList *)AllocVecTagList(sizeof(struct MinList) + 10, NULL);
|
||||||
|
#warning List structure allocation is larger than necessary for debugging ^^^^
|
||||||
|
|
||||||
NewMinList(objlist);
|
NewMinList(objlist);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue