summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/keyremap.c4
-rw-r--r--apps/plugins/pictureflow/pictureflow.c2
2 files changed, 2 insertions, 4 deletions
diff --git a/apps/plugins/keyremap.c b/apps/plugins/keyremap.c
index cb19fcf92c..f0b36a735e 100644
--- a/apps/plugins/keyremap.c
+++ b/apps/plugins/keyremap.c
@@ -53,13 +53,13 @@ struct context_flags {
53/* flags added to context_name[] */ 53/* flags added to context_name[] */
54static struct context_flags context_flags[] = { 54static struct context_flags context_flags[] = {
55 {"UNKNOWN", 0},/* index 0 is an Error */ 55 {"UNKNOWN", 0},/* index 0 is an Error */
56#ifdef HAVE_LOCKED_ACTIONS 56#ifndef HAS_BUTTON_HOLD
57 {"LOCKED", CONTEXT_LOCKED}, 57 {"LOCKED", CONTEXT_LOCKED},
58#endif 58#endif
59 /*{"PLUGIN", CONTEXT_PLUGIN}, need a custom action list and a way to supply */ 59 /*{"PLUGIN", CONTEXT_PLUGIN}, need a custom action list and a way to supply */
60#if BUTTON_REMOTE != 0 60#if BUTTON_REMOTE != 0
61 {"REMOTE", CONTEXT_REMOTE}, 61 {"REMOTE", CONTEXT_REMOTE},
62#ifdef HAVE_LOCKED_ACTIONS 62#ifndef HAS_BUTTON_HOLD
63 {"REMOTE_LOCKED", CONTEXT_REMOTE | CONTEXT_LOCKED}, 63 {"REMOTE_LOCKED", CONTEXT_REMOTE | CONTEXT_LOCKED},
64#endif 64#endif
65#endif /* BUTTON_REMOTE != 0 */ 65#endif /* BUTTON_REMOTE != 0 */
diff --git a/apps/plugins/pictureflow/pictureflow.c b/apps/plugins/pictureflow/pictureflow.c
index a7a0031391..54497d8306 100644
--- a/apps/plugins/pictureflow/pictureflow.c
+++ b/apps/plugins/pictureflow/pictureflow.c
@@ -967,9 +967,7 @@ const struct custom_format format_transposed = {
967 967
968static const struct button_mapping* get_context_map(int context) 968static const struct button_mapping* get_context_map(int context)
969{ 969{
970#ifdef HAVE_LOCKED_ACTIONS
971 context &= ~CONTEXT_LOCKED; 970 context &= ~CONTEXT_LOCKED;
972#endif
973 return pf_contexts[context & ~CONTEXT_PLUGIN]; 971 return pf_contexts[context & ~CONTEXT_PLUGIN];
974} 972}
975 973