Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] [PATCH] yaepg for 1.3.18
Here is a patch for yaepg and vdr-1.3.18..
diff -ru vdr-1.3.17/PLUGINS/src/yaepg-0.0.2.1/yaepg.c yaepg-0.0.2.1/yaepg.c
--- vdr-1.3.17/PLUGINS/src/yaepg-0.0.2.1/yaepg.c.orig 2004-12-01 04:41:27.000000000 -0800
+++ vdr-1.3.17/PLUGINS/src/yaepg-0.0.2.1/yaepg.c 2005-01-09 21:45:40.000000000 -0800
@@ -1207,7 +1207,7 @@
cDateBox *datebox;
cRecDlgBox *recDlgBox;
- int msgboxStart;
+ cTimeMs msgboxStart;
cMessageBox *msgbox;
/*
@@ -1233,7 +1233,7 @@
* Direct Channel Change
*/
int currChan;
- int lastInput;
+ cTimeMs lastInput;
/*
* The last possible starting channel for the grid.
@@ -1638,7 +1638,7 @@
/* Display the "Timer added" message" */
msgbox = new cMessageBox(tr("Timer added"));
- msgboxStart = time_ms();
+ msgboxStart.Set();
Draw();
break;
@@ -1649,7 +1649,7 @@
/* Display the "Timer cancelled" message */
msgbox = new cMessageBox(tr("Timer cancelled"));
- msgboxStart = time_ms();
+ msgboxStart.Set();
Draw();
break;
@@ -1772,7 +1772,7 @@
break;
}
- lastInput = time_ms();
+ lastInput.Set();
Draw();
}
break;
@@ -1802,7 +1802,7 @@
}
/* Cancel direct channel input ? */
- if (currChan && (time_ms() - lastInput) > 1000) {
+ if (currChan && lastInput.Elapsed() > 1000) {
/* fprintf(stderr, "Timeout! %d\n", currChan); */
for (int i = 0; i < 100; i++) {
if (Channels.GetByNumber(currChan-i)) {
@@ -1816,7 +1816,7 @@
}
/* Did the message box expire ? */
- if (msgbox != NULL && (time_ms() - msgboxStart) > 1000) {
+ if (msgbox != NULL && msgboxStart.Elapsed() > 1000) {
delete msgbox;
msgbox = NULL;
needDraw = true;
Home |
Main Index |
Thread Index