From e14504ae56cf1b2daf831ab19df09622e9b889a0 Mon Sep 17 00:00:00 2001 From: Vladimir Olteanu Date: Sun, 5 Sep 2021 16:52:18 +0300 Subject: [PATCH] SVidPlayContinue: use SDLWrap::ConvertSurface* --- Source/storm/storm_svid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/storm/storm_svid.cpp b/Source/storm/storm_svid.cpp index 728f96c04..63d1c060f 100644 --- a/Source/storm/storm_svid.cpp +++ b/Source/storm/storm_svid.cpp @@ -326,9 +326,9 @@ bool SVidPlayContinue() // The source surface is always 8-bit, and the output surface is never 8-bit in this branch. // We must convert to the output format before calling SDL_BlitScaled. #ifdef USE_SDL1 - SDLSurfaceUniquePtr converted { SDL_ConvertSurface(SVidSurface.get(), ghMainWnd->format, 0) }; + SDLSurfaceUniquePtr converted = SDLWrap::ConvertSurface(SVidSurface.get(), ghMainWnd->format, 0); #else - SDLSurfaceUniquePtr converted { SDL_ConvertSurfaceFormat(SVidSurface.get(), wndFormat, 0) }; + SDLSurfaceUniquePtr converted = SDLWrap::ConvertSurfaceFormat(SVidSurface.get(), wndFormat, 0); #endif if (SDL_BlitScaled(converted.get(), nullptr, outputSurface, &outputRect) <= -1) { Log("{}", SDL_GetError());