summaryrefslogtreecommitdiff
path: root/osd.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-06-12 14:04:01 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2004-06-12 14:04:01 +0200
commitdcee5cb9670abb17a2d541a4fc073a944c16f6bb (patch)
treea5b38ab7211a12df0174d4e80c456bbdddb3e632 /osd.c
parent8108d4587faf7c9e6d05c5ce2dd42e3a866b2dd0 (diff)
downloadvdr-dcee5cb9670abb17a2d541a4fc073a944c16f6bb.tar.gz
vdr-dcee5cb9670abb17a2d541a4fc073a944c16f6bb.tar.bz2
Fixed calculating the OSD width and height
Diffstat (limited to 'osd.c')
-rw-r--r--osd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/osd.c b/osd.c
index 6bfa1e5b..bad03f3e 100644
--- a/osd.c
+++ b/osd.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: osd.c 1.53 2004/06/12 13:24:42 kls Exp $
+ * $Id: osd.c 1.54 2004/06/12 13:59:12 kls Exp $
*/
#include "osd.h"
@@ -622,8 +622,8 @@ eOsdError cOsd::SetAreas(const tArea *Areas, int NumAreas)
width = height = 0;
for (int i = 0; i < NumAreas; i++) {
bitmaps[numBitmaps++] = new cBitmap(Areas[i].Width(), Areas[i].Height(), Areas[i].bpp, Areas[i].x1, Areas[i].y1);
- width = max(width, Areas[i].x2);
- height = max(height, Areas[i].y2);
+ width = max(width, Areas[i].x2 + 1);
+ height = max(height, Areas[i].y2 + 1);
}
}
}