Update to C++ style static cast

This commit is contained in:
Fayaz Shaikh 2026-03-04 14:04:16 -05:00 committed by GitHub
parent 98339ade14
commit 88a8dde0d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -88,7 +88,7 @@ BOOL g_bWidescreen = TRUE;
int g_iScreenWidth = 1920; int g_iScreenWidth = 1920;
int g_iScreenHeight = 1080; int g_iScreenHeight = 1080;
float g_iAspectRatio = (float)g_iScreenWidth / (float)g_iScreenHeight; float g_iAspectRatio = static_cast<float>g_iScreenWidth / g_iScreenHeight;
char g_Win64Username[17] = { 0 }; char g_Win64Username[17] = { 0 };
wchar_t g_Win64UsernameW[17] = { 0 }; wchar_t g_Win64UsernameW[17] = { 0 };
@ -102,7 +102,7 @@ static WINDOWPLACEMENT g_wpPrev = { sizeof(g_wpPrev) };
//-------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------
void UpdateAspectRatio(int width, int height) void UpdateAspectRatio(int width, int height)
{ {
g_iAspectRatio = (float)width / (float)height; g_iAspectRatio = static_cast<float>width / height;
} }
struct Win64LaunchOptions struct Win64LaunchOptions