diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2012-03-03 07:52:13 -0500 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2012-03-03 07:52:13 -0500 |
commit | d05db0a90c7bce7e6830e77a16c63a90e9e572c4 (patch) | |
tree | 3af3b1406b2bc6a30f647abcc40865bee2f73022 /apps/misc.c | |
parent | f688710707f3af56a5949b8ae3957c9408b25392 (diff) | |
download | rockbox-d05db0a90c7bce7e6830e77a16c63a90e9e572c4.tar.gz rockbox-d05db0a90c7bce7e6830e77a16c63a90e9e572c4.zip |
Correct actionable offense for misappropriation of action context.
Just use a bool to indicate raw button instead of action code. No
bother with plugin version yet again so soon.
Change-Id: I4aa075c0c1fb5308c9d49bebb30ac76f671b2335
Diffstat (limited to 'apps/misc.c')
-rw-r--r-- | apps/misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/misc.c b/apps/misc.c index 78ee154c56..ca99a1d9ac 100644 --- a/apps/misc.c +++ b/apps/misc.c | |||
@@ -887,13 +887,13 @@ void keyclick_set_callback(keyclick_callback cb, void* data) | |||
887 | } | 887 | } |
888 | 888 | ||
889 | /* Produce keyclick based upon button and global settings */ | 889 | /* Produce keyclick based upon button and global settings */ |
890 | void keyclick_click(int context, int action) | 890 | void keyclick_click(bool rawbutton, int action) |
891 | { | 891 | { |
892 | int button = action; | 892 | int button = action; |
893 | static long last_button = BUTTON_NONE; | 893 | static long last_button = BUTTON_NONE; |
894 | bool do_beep = false; | 894 | bool do_beep = false; |
895 | 895 | ||
896 | if (!(context & CONTEXT_RAWBUTTON)) | 896 | if (!rawbutton) |
897 | get_action_statuscode(&button); | 897 | get_action_statuscode(&button); |
898 | 898 | ||
899 | /* Settings filters */ | 899 | /* Settings filters */ |