1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

fix and no shadow

This commit is contained in:
Laserlicht 2024-09-13 00:03:25 +02:00
parent 16ae854f17
commit e963550431
3 changed files with 2 additions and 5 deletions

View File

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

View File

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

View File

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