mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
Fixed a segfault
This commit is contained in:
parent
8335ab0e41
commit
69b851c9ed
@ -7,7 +7,7 @@ cOsdManager::cOsdManager(void) {
|
|||||||
bool cOsdManager::setOsd() {
|
bool cOsdManager::setOsd() {
|
||||||
osd = cOsdProvider::NewOsd(cOsd::OsdLeft(), cOsd::OsdTop());
|
osd = cOsdProvider::NewOsd(cOsd::OsdLeft(), cOsd::OsdTop());
|
||||||
if (osd) {
|
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) {
|
if (osd->SetAreas(&Area, 1) == oeOk) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user