Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 26th, 2011  |  syntax: None  |  size: 1.25 KB  |  views: 62  |  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. diff --git a/apps/action.h b/apps/action.h
  2. index ccf3313..a7eb1a4 100644
  3. --- a/apps/action.h
  4. +++ b/apps/action.h
  5. @@ -92,6 +92,7 @@ enum {
  6.      ACTION_REDRAW, /* returned if keys are locked and we splash()'ed */
  7.      ACTION_TOUCHSCREEN,
  8.      ACTION_TOUCHSCREEN_MODE, /* toggle the touchscreen mode */
  9. +    ACTION_TOUCHSCREEN_NONE, /* hack action for the skin "none" touch action */
  10.      
  11.      /* standard actions, use these first */
  12.      ACTION_STD_PREV,
  13. diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c
  14. index 4d57fc1..89dda4f 100644
  15. --- a/apps/gui/skin_engine/skin_parser.c
  16. +++ b/apps/gui/skin_engine/skin_parser.c
  17. @@ -1187,7 +1187,7 @@ static int parse_lasttouch(struct skin_element *element,
  18.  struct touchaction {const char* s; int action;};
  19.  static const struct touchaction touchactions[] = {
  20.      /* generic actions, convert to screen actions on use */
  21. -    {"none", ACTION_TOUCHSCREEN},       {"lock", ACTION_TOUCH_SOFTLOCK },
  22. +    {"none", ACTION_TOUCHSCREEN_NONE},  {"lock", ACTION_TOUCH_SOFTLOCK },
  23.      {"prev", ACTION_STD_PREV },         {"next", ACTION_STD_NEXT },
  24.      {"rwd", ACTION_STD_PREVREPEAT },    {"ffwd", ACTION_STD_NEXTREPEAT },
  25.      {"hotkey", ACTION_STD_HOTKEY},      {"select", ACTION_STD_OK },
  26.  
  27.  
clone this paste RAW Paste Data