1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Merge pull request #3169 from Alexander-Wilms/intro-clear-screen

CVideoHandler.cpp: Clear screen before rendering each frame of the intro
This commit is contained in:
Ivan Savenko 2023-11-12 19:38:02 +02:00 committed by GitHub
commit b86060d729
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -631,6 +631,7 @@ bool CVideoPlayer::playVideo(int x, int y, bool stopOnKey)
SDL_Rect rect = CSDL_Ext::toSDL(pos);
SDL_RenderClear(mainRenderer);
SDL_RenderCopy(mainRenderer, texture, nullptr, &rect);
SDL_RenderPresent(mainRenderer);