Fix window opacity update

This commit is contained in:
RT2 authored and Sam Lantinga committed 2024-09-29 14:08:09 -07:00
1 parent c84d825241
commit 06e122103c
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}