fixed bug in creating osd

This commit is contained in:
louis
2015-03-28 12:33:06 +01:00
parent 3dc2313708
commit 361802844b
2 changed files with 2 additions and 4 deletions

View File

@@ -52,7 +52,7 @@ bool cPixmapContainer::CreateOsd(int Left, int Top, int Width, int Height) {
}
cOsd *newOsd = cOsdProvider::NewOsd(Left, Top);
if (newOsd) {
tArea Area = { 0, 0, Width, Height, 32 };
tArea Area = { 0, 0, Width - 1, Height - 1, 32 };
if (newOsd->SetAreas(&Area, 1) == oeOk) {
osd = newOsd;
return true;