Fixed conventions

This commit is contained in:
tusharsingh09 2021-12-30 17:17:37 +05:30
parent dad6a9c0a5
commit 604259c022

View File

@ -1538,8 +1538,8 @@ void SetWindowSize(int width, int height)
void SetWindowOpacity(float opacity)
{
#if defined(PLATFORM_DESKTOP)
if (opacity >= 1.0) opacity = 1.0;
else if (opacity <= 0.0) opacity = 0.0;
if (opacity >= 1.0f) opacity = 1.0f;
else if (opacity <= 0.0f) opacity = 0.0f;
glfwSetWindowOpacity(CORE.Window.handle, opacity);
#endif
}