fixed scrolling bug

This commit is contained in:
louis 2016-03-28 12:26:26 +02:00
parent 70d3f63988
commit 11f5697032

View File

@ -306,13 +306,13 @@ void cViewElement::WakeUp(void) {
void cViewElement::Close(void) { void cViewElement::Close(void) {
delete detacher; delete detacher;
detacher = NULL; detacher = NULL;
StopScrolling();
for (cAreaNode *node = areaNodes.First(); node; node = areaNodes.Next(node)) { for (cAreaNode *node = areaNodes.First(); node; node = areaNodes.Next(node)) {
node->StopBlinkers(); node->StopBlinkers();
sdOsd->Lock(); sdOsd->Lock();
node->Close(); node->Close();
sdOsd->Unlock(); sdOsd->Unlock();
} }
StopScrolling();
dirty = true; dirty = true;
init = true; init = true;
startAnimation = true; startAnimation = true;
@ -538,4 +538,5 @@ cPoint cViewElement::ShiftStart(cRect &shiftbox) {
start.SetY(cOsd::OsdHeight()); start.SetY(cOsd::OsdHeight());
} }
return start; return start;
} }