diff --git a/HISTORY b/HISTORY index c63bc66d..d68b52e8 100644 --- a/HISTORY +++ b/HISTORY @@ -5593,3 +5593,4 @@ Video Disk Recorder Revision History is run as root with option -u (thanks to Hans-Werner Hilse). - Speeded up anti-aliased font rendering by caching the blend indexes (based on a suggestion by Martin Wache). +- Fixed setting the OSD area in the pictures plugin. 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 @@ -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)); } }