1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Clear only part of screen covered by video - required for spellbook

This commit is contained in:
Ivan Savenko 2023-12-18 01:01:02 +02:00
parent e6dcf355e8
commit f575e46ba0

View File

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