summaryrefslogtreecommitdiff
path: root/PLUGINS/src/pictures/player.c
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/pictures/player.c
parent197d6a9c85580a6145ec43466f349a45a271a45a (diff)
downloadvdr-8f5da3f68bd8db1d718aa4239f66f6cca2ecd49e.tar.gz
vdr-8f5da3f68bd8db1d718aa4239f66f6cca2ecd49e.tar.bz2
Fixed setting the OSD area in the pictures plugin
Diffstat (limited to 'PLUGINS/src/pictures/player.c')
-rw-r--r--PLUGINS/src/pictures/player.c6
1 files changed, 3 insertions, 3 deletions
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));
}
}