added progressmodeonly viewelement in displayreplay

This commit is contained in:
louis
2015-07-25 14:19:32 +02:00
parent d9c5219f43
commit 6e0f56e56c
10 changed files with 68 additions and 2 deletions

View File

@@ -213,6 +213,19 @@ void cStopWatch::Stop(const char* message) {
dsyslog("skindesigner: %s - needed %d ms", message, (int)(cTimeMs::Now() - start));
}
string GetTimeString(int seconds) {
time_t sec(seconds);
tm *p = gmtime(&sec);
int hours = p->tm_hour;
int mins = p->tm_min;
int secs = p->tm_sec;
if (hours > 0) {
return *cString::sprintf("%d:%02d:%02d", hours, mins, secs);
}
return *cString::sprintf("%02d:%02d", mins, secs);;
}
//View Helpers
string GetScreenResolutionString(int width, int height, bool *isHD) {
string name = "";

View File

@@ -41,6 +41,8 @@ public:
void Stop(const char* message);
};
string GetTimeString(int seconds);
string GetScreenResolutionString(int width, int height, bool *isHD);
string GetScreenAspectString(double aspect, bool *isWideScreen);