Browse Source

SVidPlayContinue: use SDLWrap::ConvertSurface*

pull/2867/head
Vladimir Olteanu 5 years ago committed by Anders Jenbo
parent
commit
e14504ae56
  1. 4
      Source/storm/storm_svid.cpp

4
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());

Loading…
Cancel
Save