summaryrefslogtreecommitdiff
path: root/dvbosd.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2000-10-03 13:37:24 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2000-10-03 13:37:24 +0200
commit1c9122ae03f02f184a3fa0f1a09c62fa7a571e7c (patch)
tree6d0e3cb4fea1206fcad0313706ed012a05252c06 /dvbosd.c
parent38626b1210c4e7e9ce488589a3ad8ca3936550d0 (diff)
downloadvdr-1c9122ae03f02f184a3fa0f1a09c62fa7a571e7c.tar.gz
vdr-1c9122ae03f02f184a3fa0f1a09c62fa7a571e7c.tar.bz2
Displaying as much as possible of the current/next info (dropping characters that would display only partially)
Diffstat (limited to 'dvbosd.c')
-rw-r--r--dvbosd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dvbosd.c b/dvbosd.c
index 2ab01bc3..1e2c354e 100644
--- a/dvbosd.c
+++ b/dvbosd.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbosd.c 1.1 2000/10/03 10:10:28 kls Exp $
+ * $Id: dvbosd.c 1.2 2000/10/03 13:34:13 kls Exp $
*/
#include "dvbosd.h"
@@ -81,6 +81,8 @@ void cBitmap::Text(int x, int y, const char *s, eDvbColor ColorFg, eDvbColor Col
int h = font->Height(s);
while (s && *s) {
const cFont::tCharData *CharData = font->CharData(*s++);
+ if (int(x + CharData->width) > width)
+ break;
for (int row = 0; row < h; row++) {
cFont::tPixelData PixelData = CharData->lines[row];
for (int col = CharData->width; col-- > 0; ) {