Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseAaronLopezGarcia committed Nov 30, 2023
1 parent 6d6b2d5 commit 7154415
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions extras/menus/arkMenu/src/system_mgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,14 +200,14 @@ static void drawOptionsMenuCommon(){
}
}

static void dateTime() {
static void drawDateTime() {
pspTime date;
sceRtcGetCurrentClockLocalTime(&date);

char dateStr[100];
sprintf(dateStr, "%04d/%02d/%02d %02d:%02d:%02d", date.year, date.month, date.day, date.hour, date.minutes, date.seconds);
int x = 450 - common::calcTextWidth(dateStr, SIZE_MEDIUM, 0);
if (common::getConf()->battery_percent) x -= common::calcTextWidth("-100%", SIZE_MEDIUM, 0)-5;
if (common::getConf()->battery_percent) x -= common::calcTextWidth("-100%", SIZE_MEDIUM, 0)-10;
common::printText(x, 13, dateStr, LITEGRAY, SIZE_MEDIUM, 0, 0, 0);
}

Expand Down Expand Up @@ -257,12 +257,12 @@ static void systemDrawer(){
// draw border, battery and datetime
common::getImage(IMAGE_DIALOG)->draw_scale(0, 0, 480, 20);
drawBattery();
dateTime();
drawDateTime();
// draw entry text
entries[cur_entry]->drawInfo();
// draw music icon is music player is open
if (MusicPlayer::isPlaying()){
common::getIcon(FILE_MUSIC)->draw( common::getConf()->battery_percent ? 250:280, 3);
common::getIcon(FILE_MUSIC)->draw( common::getConf()->battery_percent ? 240:260, 3);
}
break;
case 1: // draw opening animation
Expand Down

0 comments on commit 7154415

Please sign in to comment.