summaryrefslogtreecommitdiff
path: root/remote.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-10-14 10:41:20 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-10-14 10:41:20 +0200
commit93d2941ebe777550559b4c27bfc3b04806d684f7 (patch)
tree764f54f643ea657bd28cea9d0dbc1ed8114f8ee6 /remote.c
parent7bed3fd6ba154c108872f357a9e8e247122da411 (diff)
downloadvdr-93d2941ebe777550559b4c27bfc3b04806d684f7.tar.gz
vdr-93d2941ebe777550559b4c27bfc3b04806d684f7.tar.bz2
Keys from expanded key macros are now put into the front of the key queue
Diffstat (limited to 'remote.c')
-rw-r--r--remote.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/remote.c b/remote.c
index a4277401..06b3bb1c 100644
--- a/remote.c
+++ b/remote.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: remote.c 1.51 2006/05/12 12:40:15 kls Exp $
+ * $Id: remote.c 1.52 2006/10/14 10:24:13 kls Exp $
*/
#include "remote.h"
@@ -106,13 +106,9 @@ bool cRemote::PutMacro(eKeys Key)
const cKeyMacro *km = KeyMacros.Get(Key);
if (km) {
plugin = km->Plugin();
- for (int i = 1; i < MAXKEYSINMACRO; i++) {
- if (km->Macro()[i] != kNone) {
- if (!Put(km->Macro()[i]))
- return false;
- }
- else
- break;
+ for (int i = km->NumKeys(); --i > 0; ) {
+ if (!Put(km->Macro()[i], true))
+ return false;
}
}
return true;