From 604259c022d7d76d8d20c5cc09a9efcca27e01e2 Mon Sep 17 00:00:00 2001 From: tusharsingh09 Date: Thu, 30 Dec 2021 17:17:37 +0530 Subject: [PATCH] Fixed conventions --- src/rcore.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rcore.c b/src/rcore.c index ddda0d500..f0e5876e9 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -1535,11 +1535,11 @@ void SetWindowSize(int width, int height) } // Set window opacity, value opacity is between 0.0 and 1.0 -void SetWindowOpacity (float opacity) +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 }