summaryrefslogtreecommitdiff
path: root/PLUGINS/src/osddemo
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-05-16 10:35:36 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2004-05-16 10:35:36 +0200
commit5d99df7b7760c4a2b497c737a15b609008f6d56d (patch)
treea342f2f7465a73fe2bd63848d87566af8d646dd3 /PLUGINS/src/osddemo
parent7aab06d8b1c6de59d06756d44c631984acd299b3 (diff)
downloadvdr-5d99df7b7760c4a2b497c737a15b609008f6d56d.tar.gz
vdr-5d99df7b7760c4a2b497c737a15b609008f6d56d.tar.bz2
Implemented 'skins' and 'themes'
Diffstat (limited to 'PLUGINS/src/osddemo')
-rw-r--r--PLUGINS/src/osddemo/HISTORY4
-rw-r--r--PLUGINS/src/osddemo/osddemo.c22
2 files changed, 13 insertions, 13 deletions
diff --git a/PLUGINS/src/osddemo/HISTORY b/PLUGINS/src/osddemo/HISTORY
index c7d4ebcf..fd10cc3c 100644
--- a/PLUGINS/src/osddemo/HISTORY
+++ b/PLUGINS/src/osddemo/HISTORY
@@ -8,3 +8,7 @@ VDR Plugin 'osddemo' Revision History
2002-12-13: Version 0.1.0
- Changed setting of CXX and CXXFLAGS variables in Makefile.
+
+2004-04-30: Version 0.1.1
+
+- New OSD handling.
diff --git a/PLUGINS/src/osddemo/osddemo.c b/PLUGINS/src/osddemo/osddemo.c
index 3ac8a2d9..08b2d967 100644
--- a/PLUGINS/src/osddemo/osddemo.c
+++ b/PLUGINS/src/osddemo/osddemo.c
@@ -3,12 +3,12 @@
*
* See the README file for copyright information and how to reach the author.
*
- * $Id: osddemo.c 1.2 2002/12/13 15:02:01 kls Exp $
+ * $Id: osddemo.c 1.3 2004/05/16 09:28:51 kls Exp $
*/
#include <vdr/plugin.h>
-static const char *VERSION = "0.1.0";
+static const char *VERSION = "0.1.1";
static const char *DESCRIPTION = "Demo of arbitrary OSD setup";
static const char *MAINMENUENTRY = "Osd Demo";
@@ -16,10 +16,10 @@ static const char *MAINMENUENTRY = "Osd Demo";
class cLineGame : public cOsdObject {
private:
- cOsdBase *osd;
+ cOsd *osd;
int x;
int y;
- eDvbColor color;
+ tColor color;
public:
cLineGame(void);
~cLineGame();
@@ -41,15 +41,11 @@ cLineGame::~cLineGame()
void cLineGame::Show(void)
{
- osd = cOsd::OpenRaw(100, 50);
+ osd = cOsdProvider::NewOsd(100, 50);
if (osd) {
- osd->Create(0, 0, 100, 200, 4);
- osd->AddColor(clrBackground);
- osd->AddColor(clrRed);
- osd->AddColor(clrGreen);
- osd->AddColor(clrYellow);
- osd->AddColor(clrBlue);
- osd->Clear();
+ tArea Area = { 0, 0, 99, 199, 4 };
+ osd->SetAreas(&Area, 1);
+ osd->DrawRectangle(0, 0, 99, 199, clrGray50);
osd->Flush();
}
}
@@ -70,7 +66,7 @@ eOSState cLineGame::ProcessKey(eKeys Key)
case kOk: return osEnd;
default: return state;
}
- osd->Fill(x, y, x + 3, y + 3, color);
+ osd->DrawRectangle(x, y, x + 3, y + 3, color);
osd->Flush();
state = osContinue;
}