SDL: Fix window opacity update

From 06e122103c31c5b5b13a6e078c949cda99bfc59e Mon Sep 17 00:00:00 2001
From: RT2 <[EMAIL REDACTED]>
Date: Sun, 29 Sep 2024 23:02:43 +0200
Subject: [PATCH] Fix window opacity update

---
 src/video/SDL_video.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c
index e4545d9f87d21..c105bc140943a 100644
--- a/src/video/SDL_video.c
+++ b/src/video/SDL_video.c
@@ -3511,7 +3511,7 @@ bool SDL_SetWindowOpacity(SDL_Window *window, float opacity)
     }
 
     result = _this->SetWindowOpacity(_this, window, opacity);
-    if (result == 0) {
+    if (result) {
         window->opacity = opacity;
     }