From c1e709e8c4aba26daf89712dacfe30a1b479d07d Mon Sep 17 00:00:00 2001 From: Laserlicht <13953785+Laserlicht@users.noreply.github.com> Date: Sat, 18 Jan 2025 20:35:01 +0100 Subject: [PATCH] fix video background --- client/windows/GUIClasses.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/windows/GUIClasses.cpp b/client/windows/GUIClasses.cpp index 7dfe9611e..a88f30b14 100644 --- a/client/windows/GUIClasses.cpp +++ b/client/windows/GUIClasses.cpp @@ -1684,7 +1684,7 @@ VideoWindow::VideoWindow(const VideoPath & video, const ImagePath & rim, bool sh blackBackground = std::make_shared(Rect(0, 0, GH.screenDimensions().x, GH.screenDimensions().y)); videoPlayer = std::make_shared(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)