[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Hopefully pretty straightforward, but I didn't test yet.
Index: src/gui.c
===================================================================
RCS file: /cvsroot/alleg/allegro/src/gui.c,v
retrieving revision 1.40
diff -u -r1.40 gui.c
--- src/gui.c 2001/11/23 14:08:27 1.40
+++ src/gui.c 2001/11/28 04:28:05
@@ -720,8 +720,11 @@
install_int(dclick_check, 20);
- if (get_display_switch_mode() == SWITCH_AMNESIA)
- set_display_switch_callback(SWITCH_IN, gui_switch_callback);
+ switch (get_display_switch_mode()) {
+ case SWITCH_AMNESIA:
+ case SWITCH_BACKAMNESIA:
+ set_display_switch_callback(SWITCH_IN, gui_switch_callback);
+ }
/* gets menu auto-opening delay (in milliseconds) from config file */
gui_menu_opening_delay = get_config_int(uconvert_ascii("system", tmp1), uconvert_ascii("menu_opening_delay", tmp2), 300);
@@ -838,8 +841,11 @@
if (gui_install_time != _allegro_count) {
install_int(dclick_check, 20);
- if (get_display_switch_mode() == SWITCH_AMNESIA)
- set_display_switch_callback(SWITCH_IN, gui_switch_callback);
+ switch (get_display_switch_mode()) {
+ case SWITCH_AMNESIA:
+ case SWITCH_BACKAMNESIA:
+ set_display_switch_callback(SWITCH_IN, gui_switch_callback);
+ }
gui_install_time = _allegro_count;
}