From 52ad6ae3c90496b88e6404637e85fa5682827313 Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Mon, 24 Aug 2026 10:33:47 -0400 Subject: [PATCH] Use NEAREST instead of PIXELART for screenshot scaling, at least for now --- desktop_version/src/GraphicsUtil.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/desktop_version/src/GraphicsUtil.cpp b/desktop_version/src/GraphicsUtil.cpp index 75e2259f..d8376671 100644 --- a/desktop_version/src/GraphicsUtil.cpp +++ b/desktop_version/src/GraphicsUtil.cpp @@ -382,7 +382,12 @@ bool UpscaleScreenshot2x(SDL_Surface* src, SDL_Surface** dest) } } - int result = SDL_BlitSurfaceScaled(src, NULL, *dest, NULL, SDL_SCALEMODE_PIXELART); + /* PIXELART scaling would be cool here, but that's usually done in a shader while + * this is just a sw blit. SDL_surface.c currently just aliases this to NEAREST, + * 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) { WHINE_ONCE_ARGS(("Could not blit surface: %s", SDL_GetError()));