Screenshots: Fix another SDL2->3 bool regression.

We really should have made a better migration tool for these...
This commit is contained in:
Ethan Lee authored and GitHub committed 2026-10-08 09:44:44 -04:00
1 parent cbab58b9cb
commit 7b9d85a868
1 file changed
+1 -2
+1 -2
View File
@@ -387,8 +387,7 @@ bool UpscaleScreenshot2x(SDL_Surface* src, SDL_Surface** dest)
* so let's use that to improve 3.2 compatibility for now. * so let's use that to improve 3.2 compatibility for now.
* -flibit * -flibit
*/ */
int result = SDL_BlitSurfaceScaled(src, NULL, *dest, NULL, SDL_SCALEMODE_NEAREST); if (!SDL_BlitSurfaceScaled(src, NULL, *dest, NULL, SDL_SCALEMODE_NEAREST))
if (result == 0)
{ {
WHINE_ONCE_ARGS(("Could not blit surface: %s", SDL_GetError())); WHINE_ONCE_ARGS(("Could not blit surface: %s", SDL_GetError()));
return false; return false;