summaryrefslogtreecommitdiff
path: root/PLUGINS/src
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2008-02-09 12:15:52 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2008-02-09 12:15:52 +0100
commit8f5da3f68bd8db1d718aa4239f66f6cca2ecd49e (patch)
tree2096743f3536bb889c6d65f7504cad2d15083d2e /PLUGINS/src
parent197d6a9c85580a6145ec43466f349a45a271a45a (diff)
downloadvdr-8f5da3f68bd8db1d718aa4239f66f6cca2ecd49e.tar.gz
vdr-8f5da3f68bd8db1d718aa4239f66f6cca2ecd49e.tar.bz2
Fixed setting the OSD area in the pictures plugin
Diffstat (limited to 'PLUGINS/src')
-rw-r--r--PLUGINS/src/pictures/HISTORY4
-rw-r--r--PLUGINS/src/pictures/pictures.c4
-rw-r--r--PLUGINS/src/pictures/player.c6
3 files changed, 9 insertions, 5 deletions
diff --git a/PLUGINS/src/pictures/HISTORY b/PLUGINS/src/pictures/HISTORY
index 23725d6d..18966579 100644
--- a/PLUGINS/src/pictures/HISTORY
+++ b/PLUGINS/src/pictures/HISTORY
@@ -18,3 +18,7 @@ VDR Plugin 'pictures' Revision History
2008-02-02: Version 0.0.4
- Added option -i to pic2mpg to ignore unknown file types.
+
+2008-02-09: Version 0.0.5
+
+- Fixed setting the OSD area.
diff --git a/PLUGINS/src/pictures/pictures.c b/PLUGINS/src/pictures/pictures.c
index 26baf478..6e64c4e3 100644
--- a/PLUGINS/src/pictures/pictures.c
+++ b/PLUGINS/src/pictures/pictures.c
@@ -3,7 +3,7 @@
*
* See the README file for copyright information and how to reach the author.
*
- * $Id: pictures.c 1.4 2008/02/02 11:32:50 kls Exp $
+ * $Id: pictures.c 1.5 2008/02/09 12:15:52 kls Exp $
*/
#include <getopt.h>
@@ -11,7 +11,7 @@
#include "menu.h"
#include "player.h"
-static const char *VERSION = "0.0.4";
+static const char *VERSION = "0.0.5";
static const char *DESCRIPTION = trNOOP("A simple picture viewer");
static const char *MAINMENUENTRY = trNOOP("Pictures");
diff --git a/PLUGINS/src/pictures/player.c b/PLUGINS/src/pictures/player.c
index b942be52..8981b600 100644
--- a/PLUGINS/src/pictures/player.c
+++ b/PLUGINS/src/pictures/player.c
@@ -3,7 +3,7 @@
*
* See the README file for copyright information and how to reach the author.
*
- * $Id: player.c 1.2 2008/01/19 11:01:58 kls Exp $
+ * $Id: player.c 1.3 2008/02/09 12:13:10 kls Exp $
*/
#include "player.h"
@@ -173,11 +173,11 @@ void cPictureControl::DisplayCaption(void)
int h = 2 * Font->Height();
if (!osd) {
osd = cOsdProvider::NewOsd(cOsd::OsdLeft(), cOsd::OsdTop() + cOsd::OsdHeight() - h, OSD_LEVEL_SUBTITLES);
- tArea Areas[] = { { 0, 0, w, h, 8 } };
+ tArea Areas[] = { { 0, 0, w - 1, h - 1, 8 } };
if (Setup.AntiAlias && osd->CanHandleAreas(Areas, sizeof(Areas) / sizeof(tArea)) == oeOk)
osd->SetAreas(Areas, sizeof(Areas) / sizeof(tArea));
else {
- tArea Areas[] = { { 0, 0, w, h, 4 } };
+ tArea Areas[] = { { 0, 0, w - 1, h - 1, 4 } };
osd->SetAreas(Areas, sizeof(Areas) / sizeof(tArea));
}
}