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:
parent
e6dcf355e8
commit
f575e46ba0
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user