Fix window opacity update

This commit is contained in:
RT2 2024-09-29 23:02:43 +02:00 committed by Sam Lantinga
parent c84d825241
commit 06e122103c

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;
}