mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 03:18:13 +00:00
Fix window opacity update
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user