瀏覽代碼

fix and no shadow

Laserlicht 1 年之前
父節點
當前提交
e963550431
共有 3 個文件被更改,包括 2 次插入5 次删除
  1. 0 1
      client/lobby/CBonusSelection.h
  2. 1 1
      client/media/CVideoHandler.cpp
  3. 1 3
      client/windows/GUIClasses.cpp

+ 0 - 1
client/lobby/CBonusSelection.h

@@ -31,7 +31,6 @@ class ISelectionScreenInfo;
 class ExtraOptionsTab;
 class VideoWidgetOnce;
 class CBonusSelection;
-class CFilledTexture;
 
 
 /// Campaign screen where you can choose one out of three starting bonuses

+ 1 - 1
client/media/CVideoHandler.cpp

@@ -344,7 +344,7 @@ FFMpegStream::~FFMpegStream()
 
 Point CVideoInstance::size()
 {
-	return dimensions;
+	return dimensions / GH.screenHandler().getScalingFactor();
 }
 
 void CVideoInstance::show(const Point & position, Canvas & canvas)

+ 1 - 3
client/windows/GUIClasses.cpp

@@ -1609,7 +1609,7 @@ void CObjectListWindow::keyPressed(EShortcut key)
 }
 
 VideoWindow::VideoWindow(VideoPath video, ImagePath rim, bool showBackground, float scaleFactor, std::function<void(bool skipped)> closeCb)
-	: CWindowObject(BORDERED | NEEDS_ANIMATED_BACKGROUND), closeCb(closeCb)
+	: CWindowObject(BORDERED | SHADOW_DISABLED | NEEDS_ANIMATED_BACKGROUND), closeCb(closeCb)
 {
 	OBJECT_CONSTRUCTION;
 
@@ -1631,8 +1631,6 @@ VideoWindow::VideoWindow(VideoPath video, ImagePath rim, bool showBackground, fl
 
 	if(!rim.empty())
 		setBackground(rim);
-	
-	updateShadow();
 }
 
 void VideoWindow::exit(bool skipped)