logo       

amiconn: apps main.c, 1.110, 1.111 screens.c, 1.70, 1.71 tree.c, 1.292, 1.2: msg#00171

systems.archos.rockbox.cvs

Subject: amiconn: apps main.c, 1.110, 1.111 screens.c, 1.70, 1.71 tree.c, 1.292, 1.293

Update of /cvsroot/rockbox/apps
In directory labb:/tmp/cvs-serv10526/apps

Modified Files:
main.c screens.c tree.c
Log Message:
Changed several places to use button_clear_queue() to empty the button queue.
Added the ability to empty the (system's) button queue to the X11 simulatr.

Index: screens.c
===================================================================
RCS file: /cvsroot/rockbox/apps/screens.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -d -r1.70 -r1.71
--- screens.c 17 Jan 2005 11:37:36 -0000 1.70
+++ screens.c 26 Jan 2005 22:48:25 -0000 1.71
@@ -901,7 +901,7 @@
void charging_splash(void)
{
splash(2*HZ, true, str(LANG_BATTERY_CHARGE));
- while (button_get(false));
+ button_clear_queue();
}



Index: main.c
===================================================================
RCS file: /cvsroot/rockbox/apps/main.c,v
retrieving revision 1.110
retrieving revision 1.111
diff -u -d -r1.110 -r1.111
--- main.c 19 Jan 2005 21:43:15 -0000 1.110
+++ main.c 26 Jan 2005 22:48:25 -0000 1.111
@@ -149,8 +149,7 @@
global_settings.mdb_enable,
global_settings.superbass);
mpeg_init();
- while (button_get(false) != 0)
- ; /* Empty the keyboard buffer */
+ button_clear_queue(); /* Empty the keyboard buffer */
}

#else

Index: tree.c
===================================================================
RCS file: /cvsroot/rockbox/apps/tree.c,v
retrieving revision 1.292
retrieving revision 1.293
diff -u -d -r1.292 -r1.293
--- tree.c 25 Jan 2005 08:55:21 -0000 1.292
+++ tree.c 26 Jan 2005 22:48:25 -0000 1.293
@@ -1127,7 +1127,7 @@
lastfilter = *tc.dirfilter;
lastsortcase = global_settings.sort_case;
restore = true;
- while (button_get(false)); /* clear button queue */
+ button_clear_queue(); /* clear button queue */
}

if (exit_func)

_______________________________________________
http://cool.haxx.se/mailman/listinfo/rockbox-cvs



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise