Skip to content

Commit

Permalink
Fixed "GO" text not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
Hana committed Nov 10, 2022
1 parent 4f74e5d commit a7c5a70
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions NGPCarMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5790,7 +5790,7 @@ HRESULT COPIED__CreateVertexesForTex(IMAGE_TEXTURE* pOutImageTexture, float x, f
int countdownNumberTexSize = 256;

void DrawCountdownNumbers(float countdown, int centerX, int centerY) {
int i = static_cast<int>(countdown) + 1; // ceil
int i = (int)std::ceil(countdown);
i = std::clamp(i, 0, 5);
IMAGE_TEXTURE tex = countdownTex[i];

Expand Down Expand Up @@ -5819,7 +5819,7 @@ void DrawCountdownDots(float countdown, int centerX, int centerY) {
IMAGE_TEXTURE tex = dot_tex;

float decimal = std::abs(countdown - std::floor(countdown));
int dots = static_cast<int>(decimal * 10); // floor
int dots = (int)std::floor(decimal * 10); // floor
int size = 16;
int y = countdownNumberTexSize / 2 + 50;

Expand Down
8 changes: 4 additions & 4 deletions NGPCarMenu.rc
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ END
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,0
PRODUCTVERSION 1,0,0,0
FILEVERSION 1,1,0,0
PRODUCTVERSION 1,1,0,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -69,11 +69,11 @@ BEGIN
BEGIN
VALUE "CompanyName", "HANA"
VALUE "FileDescription", "RBRCountdown - On-screen countdown to rally start."
VALUE "FileVersion", "1.0.0.0"
VALUE "FileVersion", "1.1.0.0"
VALUE "InternalName", "RBRCountdown.dll"
VALUE "OriginalFilename", "RBRCountdown.dll"
VALUE "ProductName", "RBRCountdown"
VALUE "ProductVersion", "1.0.0.0"
VALUE "ProductVersion", "1.1.0.0"
END
END
BLOCK "VarFileInfo"
Expand Down

0 comments on commit a7c5a70

Please sign in to comment.