mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-11 01:10:26 +02:00
Fix page flip animation playback
This commit is contained in:
@ -586,7 +586,7 @@ bool CVideoPlayer::openAndPlayVideoImpl(const VideoPath & name, const Point & po
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
instance.openVideo();
|
instance.openVideo();
|
||||||
instance.prepareOutput(scale, useOverlay);
|
instance.prepareOutput(scale, true);
|
||||||
|
|
||||||
auto lastTimePoint = boost::chrono::steady_clock::now();
|
auto lastTimePoint = boost::chrono::steady_clock::now();
|
||||||
|
|
||||||
@ -608,10 +608,7 @@ bool CVideoPlayer::openAndPlayVideoImpl(const VideoPath & name, const Point & po
|
|||||||
rect.w = instance.dimensions.x;
|
rect.w = instance.dimensions.x;
|
||||||
rect.h = instance.dimensions.y;
|
rect.h = instance.dimensions.y;
|
||||||
|
|
||||||
if(useOverlay)
|
SDL_RenderFillRect(mainRenderer, &rect);
|
||||||
SDL_RenderFillRect(mainRenderer, &rect);
|
|
||||||
else
|
|
||||||
SDL_RenderClear(mainRenderer);
|
|
||||||
|
|
||||||
if(instance.textureYUV)
|
if(instance.textureYUV)
|
||||||
SDL_RenderCopy(mainRenderer, instance.textureYUV, nullptr, &rect);
|
SDL_RenderCopy(mainRenderer, instance.textureYUV, nullptr, &rect);
|
||||||
|
Reference in New Issue
Block a user