Advertisement
Guest User

Untitled

a guest
May 4th, 2010
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. === modified file 'apps/gui/yesno.c'
  2. --- apps/gui/yesno.c 2010-04-11 11:28:02 +0000
  3. +++ apps/gui/yesno.c 2010-05-04 15:54:40 +0000
  4. @@ -153,6 +153,13 @@
  5. screens[i].stop_scroll();
  6. gui_yesno_draw(&(yn[i]));
  7. }
  8. +
  9. + /* Tell action system to wait for any pressed buttons to be released before
  10. + * considering it a keypress. This stops the release of whatever button
  11. + * caused the yesno prompt to appear from being considered as a no.
  12. + */
  13. + action_wait_for_release();
  14. +
  15. while (result==-1)
  16. {
  17. /* Repeat the question every 5secs (more or less) */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement