summaryrefslogtreecommitdiff
path: root/helpers.c
diff options
context:
space:
mode:
Diffstat (limited to 'helpers.c')
-rw-r--r--helpers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/helpers.c b/helpers.c
index 3cb08d9..b7cd0a6 100644
--- a/helpers.c
+++ b/helpers.c
@@ -5,9 +5,9 @@
#include <vdr/skins.h>
cOsd *CreateOsd(int Left, int Top, int Width, int Height) {
- cOsd *osd = cOsdProvider::NewOsd(Left, Top);
+ cOsd *osd = cOsdProvider::NewOsd(cOsd::OsdLeft() + Left,cOsd::OsdTop() + Top);
if (osd) {
- tArea Area = { 0, 0, Width, Height, 32 };
+ tArea Area = { 0, 0, Width - 1, Height - 1, 32 };
if (osd->SetAreas(&Area, 1) == oeOk) {
return osd;
}