[AD] update_dialog and MSG_IDLE |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
When update_dialog broadcasts a MSG_IDLE, it sometimes checks the return
value, and sometimes not. Vitaliy Maksimov posted a patch on [AL] to add the
missing checks.
Here is a modified version (using "dialog->res |= ..." instead of "dialog->res
= ...") which should be applied instead.
--
Julien Cugnière
--- src/gui.c.old 2004-10-27 10:54:58.568811520 +0200
+++ src/gui.c 2004-10-27 11:00:10.022463368 +0200
@@ -1045,7 +1045,7 @@
player->mouse_b = new_mouse_b;
}
else
- dialog_message(player->dialog, MSG_IDLE, 0, &nowhere);
+ player->res |= dialog_message(player->dialog, MSG_IDLE, 0, &nowhere);
}
/* need to reinstall the dclick and switch handlers? */
@@ -1069,7 +1069,7 @@
/* waiting... */
if ((dclick_status != DCLICK_AGAIN) && (dclick_status != DCLICK_NOT)) {
- dialog_message(player->dialog, MSG_IDLE, 0, &nowhere);
+ player->res |= dialog_message(player->dialog, MSG_IDLE, 0, &nowhere);
check_for_redraw(player);
return TRUE;
}