diff options
author | Johns <johns98@gmx.net> | 2012-01-07 22:36:06 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2012-01-07 22:36:06 +0100 |
commit | fd60c3c1325f8254276b70a91eba8d28402a4ddb (patch) | |
tree | 37aa6d7e7a5f465883297154cfbfcc91fdfc52ff /softhddevice.cpp | |
parent | 7b6d0ecf94b88a09f717151beaab1219615f4015 (diff) | |
download | vdr-plugin-softhddevice-fd60c3c1325f8254276b70a91eba8d28402a4ddb.tar.gz vdr-plugin-softhddevice-fd60c3c1325f8254276b70a91eba8d28402a4ddb.tar.bz2 |
Support yaepghd video output position change.
And code and comments cleanups.
Diffstat (limited to 'softhddevice.cpp')
-rw-r--r-- | softhddevice.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/softhddevice.cpp b/softhddevice.cpp index ec65bf2..2ec1a6c 100644 --- a/softhddevice.cpp +++ b/softhddevice.cpp @@ -135,6 +135,9 @@ cSoftOsd::~cSoftOsd(void) //dsyslog("[softhddev]%s:\n", __FUNCTION__); SetActive(false); + if (vidWin.bpp) { + VideoSetOutputPosition(0, 0, 1920, 1080); + } OsdClose(); } @@ -148,7 +151,17 @@ void cSoftOsd::Flush(void) if (!Active()) { return; } - //dsyslog("[softhddev]%s:\n", __FUNCTION__); + + // support yaepghd, video window + if (vidWin.bpp) { + dsyslog("[softhddev]%s: %dx%d+%d+%d\n", __FUNCTION__, + vidWin.Width(), vidWin.Height(), vidWin.x1, vidWin.y2 ); + + // FIXME: vidWin is OSD relative not video window. + VideoSetOutputPosition(Left() + vidWin.x1, Top() + vidWin.y1, + vidWin.Width(), vidWin.Height()); + } + if (!IsTrueColor()) { static char warned; cBitmap *bitmap; @@ -255,6 +268,9 @@ bool cSoftOsdProvider::ProvidesTrueColor(void) return true; } +/** +** Create cOsdProvider class. +*/ cSoftOsdProvider::cSoftOsdProvider(void) : cOsdProvider() { |