This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on May 4th, 2010  |  syntax: None  |  size: 0.58 KB  |  views: 125  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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) */
clone this paste RAW Paste Data