Browse Source

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

Ivan Savenko 1 năm trước cách đây
mục cha
commit
f575e46ba0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      client/CVideoHandler.cpp

+ 1 - 1
client/CVideoHandler.cpp

@@ -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);