Comment drawTime() until local-time support
This commit is contained in:
parent
cb604905db
commit
fa73a20a66
@ -194,16 +194,16 @@ void drawWave(float timer, color_t color, float height, float phase, float speed
|
||||
|
||||
void drawTime() {
|
||||
|
||||
char timeString[9];
|
||||
char timeString[9];
|
||||
|
||||
time_t unixTime = time(NULL);
|
||||
struct tm* timeStruct = gmtime((const time_t *)&unixTime);
|
||||
time_t unixTime = time(NULL);
|
||||
struct tm* timeStruct = gmtime((const time_t *)&unixTime);
|
||||
|
||||
int hours = timeStruct->tm_hour;
|
||||
int minutes = timeStruct->tm_min;
|
||||
int seconds = timeStruct->tm_sec;
|
||||
int hours = timeStruct->tm_hour;
|
||||
int minutes = timeStruct->tm_min;
|
||||
int seconds = timeStruct->tm_sec;
|
||||
|
||||
sprintf(timeString, "%02d:%02d:%02d", hours, minutes, seconds);
|
||||
sprintf(timeString, "%02d:%02d:%02d", hours, minutes, seconds);
|
||||
|
||||
DrawText(tahoma24, 1280 - (9 * 16) - 30, 30, MakeColor(255, 255, 255, 255), timeString);
|
||||
|
||||
@ -231,7 +231,7 @@ void menuLoop() {
|
||||
DrawText(tahoma12, 40 + 46, 30 + 16, MakeColor(255, 255, 255, 255), "v1.0.0");
|
||||
DrawText(tahoma12, 40, 720 - 32 - 16, MakeColor(255, 255, 255, 255), menu->dirname);
|
||||
|
||||
drawTime();
|
||||
//drawTime();
|
||||
|
||||
if (menu->nEntries==0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user