mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-07 00:58:39 +02:00
Clear only part of screen covered by video - required for spellbook
This commit is contained in:
@ -637,7 +637,7 @@ bool CVideoPlayer::playVideo(int x, int y, bool stopOnKey)
|
|||||||
|
|
||||||
SDL_Rect rect = CSDL_Ext::toSDL(pos);
|
SDL_Rect rect = CSDL_Ext::toSDL(pos);
|
||||||
|
|
||||||
SDL_RenderClear(mainRenderer);
|
SDL_RenderFillRect(mainRenderer, &rect);
|
||||||
SDL_RenderCopy(mainRenderer, texture, nullptr, &rect);
|
SDL_RenderCopy(mainRenderer, texture, nullptr, &rect);
|
||||||
SDL_RenderPresent(mainRenderer);
|
SDL_RenderPresent(mainRenderer);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user