From 4204e7f5717da07c1557575e6c86dfac8cecc3a0 Mon Sep 17 00:00:00 2001 From: Ari Vuollet Date: Tue, 7 Jan 2025 17:54:45 +0200 Subject: [PATCH] _misc win --- Source/Engine/Platform/SDL/SDLWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Engine/Platform/SDL/SDLWindow.cpp b/Source/Engine/Platform/SDL/SDLWindow.cpp index 82114d828..9ae817a0f 100644 --- a/Source/Engine/Platform/SDL/SDLWindow.cpp +++ b/Source/Engine/Platform/SDL/SDLWindow.cpp @@ -1000,7 +1000,8 @@ float SDLWindow::GetOpacity() const void SDLWindow::SetOpacity(const float opacity) { - SDL_SetWindowOpacity(_window, opacity); + if (!SDL_SetWindowOpacity(_window, opacity)) + LOG(Warning, "SDL_SetWindowOpacity failed: {0}", String(SDL_GetError())); } void SDLWindow::Focus()