Skip to content

Commit

Permalink
Fixing pluralization of "days"
Browse files Browse the repository at this point in the history
  • Loading branch information
foone committed Aug 27, 2021
1 parent 6762756 commit 03b92ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions source/Win95Uptime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,8 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
int crash_minutes = (TTL/1000/60) % 60;
GetCrashTime(last_text_update, crash_date, 100);

sprintf(buffer,"%s milliseconds since boot\n%d days %02dh:%02dm\n%s ms until CRASH TIME\nTTL: %d days %02dh:%02dm\nEstimated crash time: %s\n%s",
numberbuffer,days,hours,minutes,crashbuffer,crash_days,crash_hours,crash_minutes, crash_date, patch_status);
sprintf(buffer,"%s milliseconds since boot\n%d day%s %02dh:%02dm\n%s ms until CRASH TIME\nTTL: %d day%s %02dh:%02dm\nEstimated crash time: %s\n%s",
numberbuffer,days,(days==1?"":"s"),hours,minutes,crashbuffer,crash_days,(crash_days==1?"":"s"),crash_hours,crash_minutes, crash_date, patch_status);

SelectObject(hBackBuf, hFont);
DrawText(hBackBuf, buffer, strlen(buffer), &rt, DT_CENTER);
Expand Down
2 changes: 1 addition & 1 deletion source/Win95Uptime.rc
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ FONT 8, "System"
BEGIN
LTEXT "Copyright (C) 2021 Foone Turing",IDC_STATIC,49,20,119,8
ICON IDI_CLOCK,IDC_MYICON,14,9,20,20
LTEXT "Win95Uptime Version 1.6",IDC_STATIC,49,10,119,8,
LTEXT "Win95Uptime Version 1.7",IDC_STATIC,49,10,119,8,
SS_NOPREFIX
DEFPUSHBUTTON "OK",IDOK,195,50,30,11,WS_GROUP
LTEXT "Made in Jest by @foone",IDC_STATIC,49,30,119,8
Expand Down

0 comments on commit 03b92ff

Please sign in to comment.