mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 01:41:12 +02:00
CMoviePlayerGui: Bind enable/disable FileTime to enableInfoClock()
Origin commit data
------------------
Branch: ni/coolstream
Commit: dc4ce280ed
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2017-01-30 (Mon, 30 Jan 2017)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -32,9 +32,11 @@
|
||||
#include <global.h>
|
||||
#include <neutrino.h>
|
||||
#include <gui/volumebar.h>
|
||||
#include <gui/movieplayer.h>
|
||||
#include <gui/infoclock.h>
|
||||
#include <gui/timeosd.h>
|
||||
|
||||
|
||||
extern CTimeOSD *FileTimeOSD;
|
||||
|
||||
CInfoClock::CInfoClock():CComponentsFrmClock( 1, 1, NULL, "%H:%M:%S", NULL, false, 1, NULL, CC_SHADOW_ON)
|
||||
{
|
||||
@@ -122,6 +124,23 @@ bool CInfoClock::enableInfoClock(bool enable)
|
||||
ret = StopInfoClock();
|
||||
}
|
||||
}
|
||||
|
||||
if (enable) {
|
||||
if (FileTimeOSD->getRestore()) {
|
||||
FileTimeOSD->setMode(FileTimeOSD->getTmpMode());
|
||||
FileTimeOSD->update(CMoviePlayerGui::getInstance().GetPosition(),
|
||||
CMoviePlayerGui::getInstance().GetDuration());
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (FileTimeOSD->getMode() != CTimeOSD::MODE_HIDE) {
|
||||
FileTimeOSD->setTmpMode();
|
||||
FileTimeOSD->setRestore();
|
||||
if (FileTimeOSD->getRestore())
|
||||
FileTimeOSD->kill();
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user