소스 검색

fix video background

Laserlicht 9 달 전
부모
커밋
c1e709e8c4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      client/windows/GUIClasses.cpp

+ 1 - 1
client/windows/GUIClasses.cpp

@@ -1684,7 +1684,7 @@ VideoWindow::VideoWindow(const VideoPath & video, const ImagePath & rim, bool sh
 		blackBackground = std::make_shared<GraphicalPrimitiveCanvas>(Rect(0, 0, GH.screenDimensions().x, GH.screenDimensions().y));
 		videoPlayer = std::make_shared<VideoWidgetOnce>(Point(0, 0), video, true, scaleFactor, this);
 		pos = center(Rect(0, 0, videoPlayer->pos.w, videoPlayer->pos.h));
-		blackBackground->addBox(Point(0, 0), Point(pos.x, pos.y), Colors::BLACK);
+		blackBackground->addBox(Point(0, 0), Point(videoPlayer->pos.w, videoPlayer->pos.h), Colors::BLACK);
 	}
 
 	if(backgroundAroundWindow)