1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed setting the OSD area in the pictures plugin

This commit is contained in:
Klaus Schmidinger 2008-02-09 12:15:52 +01:00
parent 197d6a9c85
commit 8f5da3f68b
4 changed files with 10 additions and 5 deletions

View File

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

View File

@ -18,3 +18,7 @@ VDR Plugin 'pictures' Revision History
2008-02-02: Version 0.0.4 2008-02-02: Version 0.0.4
- Added option -i to pic2mpg to ignore unknown file types. - Added option -i to pic2mpg to ignore unknown file types.
2008-02-09: Version 0.0.5
- Fixed setting the OSD area.

View File

@ -3,7 +3,7 @@
* *
* See the README file for copyright information and how to reach the author. * 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> #include <getopt.h>
@ -11,7 +11,7 @@
#include "menu.h" #include "menu.h"
#include "player.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 *DESCRIPTION = trNOOP("A simple picture viewer");
static const char *MAINMENUENTRY = trNOOP("Pictures"); static const char *MAINMENUENTRY = trNOOP("Pictures");

View File

@ -3,7 +3,7 @@
* *
* See the README file for copyright information and how to reach the author. * 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" #include "player.h"
@ -173,11 +173,11 @@ void cPictureControl::DisplayCaption(void)
int h = 2 * Font->Height(); int h = 2 * Font->Height();
if (!osd) { if (!osd) {
osd = cOsdProvider::NewOsd(cOsd::OsdLeft(), cOsd::OsdTop() + cOsd::OsdHeight() - h, OSD_LEVEL_SUBTITLES); 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) if (Setup.AntiAlias && osd->CanHandleAreas(Areas, sizeof(Areas) / sizeof(tArea)) == oeOk)
osd->SetAreas(Areas, sizeof(Areas) / sizeof(tArea)); osd->SetAreas(Areas, sizeof(Areas) / sizeof(tArea));
else { else {
tArea Areas[] = { { 0, 0, w, h, 4 } }; tArea Areas[] = { { 0, 0, w - 1, h - 1, 4 } };
osd->SetAreas(Areas, sizeof(Areas) / sizeof(tArea)); osd->SetAreas(Areas, sizeof(Areas) / sizeof(tArea));
} }
} }