Comment drawTime() until local-time support

This commit is contained in:
Sahin Habermann 2018-02-22 00:09:44 +01:00
parent cb604905db
commit fa73a20a66

View File

@ -194,16 +194,16 @@ void drawWave(float timer, color_t color, float height, float phase, float speed
void drawTime() { void drawTime() {
char timeString[9]; char timeString[9];
time_t unixTime = time(NULL); time_t unixTime = time(NULL);
struct tm* timeStruct = gmtime((const time_t *)&unixTime); struct tm* timeStruct = gmtime((const time_t *)&unixTime);
int hours = timeStruct->tm_hour; int hours = timeStruct->tm_hour;
int minutes = timeStruct->tm_min; int minutes = timeStruct->tm_min;
int seconds = timeStruct->tm_sec; 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); 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 + 46, 30 + 16, MakeColor(255, 255, 255, 255), "v1.0.0");
DrawText(tahoma12, 40, 720 - 32 - 16, MakeColor(255, 255, 255, 255), menu->dirname); DrawText(tahoma12, 40, 720 - 32 - 16, MakeColor(255, 255, 255, 255), menu->dirname);
drawTime(); //drawTime();
if (menu->nEntries==0) if (menu->nEntries==0)
{ {