mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-11-24 06:19:25 +03:00
Screenshots: Fix another SDL2->3 bool regression.
We really should have made a better migration tool for these...
This commit is contained in:
1 parent
cbab58b9cb
commit
7b9d85a868
1 file changed
+1
-2
@@ -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;
|
||||||
|
|||||||
Reference in new issue
Block a user