Fixed a segfault

This commit is contained in:
kamel5 2020-03-11 14:58:42 +01:00
parent 8335ab0e41
commit 69b851c9ed

View File

@ -7,7 +7,7 @@ cOsdManager::cOsdManager(void) {
bool cOsdManager::setOsd() {
osd = cOsdProvider::NewOsd(cOsd::OsdLeft(), cOsd::OsdTop());
if (osd) {
tArea Area = { 0, 0, cOsd::OsdWidth(), cOsd::OsdHeight(), 32 };
tArea Area = { 0, 0, cOsd::OsdWidth() - 1, cOsd::OsdHeight() - 1, 32 };
if (osd->SetAreas(&Area, 1) == oeOk) {
return true;
}