mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-11-24 06:19:25 +03:00
Use NEAREST instead of PIXELART for screenshot scaling, at least for now
This commit is contained in:
1 parent
714e380500
commit
52ad6ae3c9
1 file changed
+6
-1
@@ -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)
|
if (result == 0)
|
||||||
{
|
{
|
||||||
WHINE_ONCE_ARGS(("Could not blit surface: %s", SDL_GetError()));
|
WHINE_ONCE_ARGS(("Could not blit surface: %s", SDL_GetError()));
|
||||||
|
|||||||
Reference in new issue
Block a user