From 7b9d85a8681862226d43549ea71edc2cf3554191 Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Thu, 8 Oct 2026 09:44:44 -0400 Subject: [PATCH] Screenshots: Fix another SDL2->3 bool regression. We really should have made a better migration tool for these... --- desktop_version/src/GraphicsUtil.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/desktop_version/src/GraphicsUtil.cpp b/desktop_version/src/GraphicsUtil.cpp index d8376671..69355bd1 100644 --- a/desktop_version/src/GraphicsUtil.cpp +++ b/desktop_version/src/GraphicsUtil.cpp @@ -387,8 +387,7 @@ bool UpscaleScreenshot2x(SDL_Surface* src, SDL_Surface** dest) * so let's use that to improve 3.2 compatibility for now. * -flibit */ - int result = SDL_BlitSurfaceScaled(src, NULL, *dest, NULL, SDL_SCALEMODE_NEAREST); - if (result == 0) + if (!SDL_BlitSurfaceScaled(src, NULL, *dest, NULL, SDL_SCALEMODE_NEAREST)) { WHINE_ONCE_ARGS(("Could not blit surface: %s", SDL_GetError())); return false;