mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-13 01:57:18 -07:00
parent
738172d9ed
commit
4aadf4c14c
10 changed files with 49 additions and 49 deletions
|
@ -6185,11 +6185,10 @@ void Interface_DrawTotalGameplayTimer(PlayState* play) {
|
|||
G_AC_NONE | G_ZS_PRIM | G_RM_XLU_SURF | G_RM_XLU_SURF2);
|
||||
|
||||
char* totalTimeText = GameplayStats_GetCurrentTime();
|
||||
char* textPointer = &totalTimeText[0];
|
||||
uint8_t textLength = strlen(textPointer);
|
||||
size_t textLength = strlen(totalTimeText);
|
||||
uint16_t textureIndex = 0;
|
||||
|
||||
for (uint16_t i = 0; i < textLength; i++) {
|
||||
for (size_t i = 0; i < textLength; i++) {
|
||||
if (totalTimeText[i] == ':' || totalTimeText[i] == '.') {
|
||||
textureIndex = 10;
|
||||
} else {
|
||||
|
@ -6234,6 +6233,7 @@ void Interface_DrawTotalGameplayTimer(PlayState* play) {
|
|||
gSPWideTextureRectangle(OVERLAY_DISP++, rectLeft << 2, rectTop << 2, (rectLeft + rectWidth) << 2,
|
||||
(rectTop + rectHeight) << 2, G_TX_RENDERTILE, 0, 0, 1 << 10, 1 << 10);
|
||||
}
|
||||
free(totalTimeText);
|
||||
|
||||
CLOSE_DISPS(play->state.gfxCtx);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue