The demos in the "osddemo" plugin can now also be ended with the "Back" key

This commit is contained in:
Klaus Schmidinger 2013-02-19 12:44:08 +01:00
parent 8260adafc2
commit bcdbfe95e7
3 changed files with 9 additions and 2 deletions

View File

@ -7661,3 +7661,4 @@ Video Disk Recorder Revision History
Juergen Lock).
- Improved working around the broken driver values for SNR in case of a "TT-budget
S2-3200" receiving DVB-S2.
- The demos in the "osddemo" plugin can now also be ended with the "Back" key.

View File

@ -51,3 +51,7 @@ VDR Plugin 'osddemo' Revision History
- Added demos of the DrawEllipse() and DrawSlope() function (press '1' or '2',
respectively).
2013-02-19: Version 0.3.1
- The demos can now also be ended with the "Back" key.

View File

@ -3,13 +3,13 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: osddemo.c 2.10 2013/02/17 13:16:34 kls Exp $
* $Id: osddemo.c 2.11 2013/02/19 12:43:19 kls Exp $
*/
#include <vdr/osd.h>
#include <vdr/plugin.h>
static const char *VERSION = "0.3.0";
static const char *VERSION = "0.3.1";
static const char *DESCRIPTION = "Demo of arbitrary OSD setup";
static const char *MAINMENUENTRY = "Osd Demo";
@ -157,6 +157,7 @@ eOSState cLineGame::ProcessKey(eKeys Key)
return osContinue;
case k2: DrawSlopes(osd);
return osContinue;
case kBack:
case kOk: return osEnd;
default: return state;
}
@ -533,6 +534,7 @@ eOSState cTrueColorDemo::ProcessKey(eKeys Key)
SetArea();
DrawSlopes(osd);
break;
case kBack:
case kOk: return osEnd;
default: return state;
}