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:
parent
16ae854f17
commit
e963550431
@ -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
|
||||
|
@ -344,7 +344,7 @@ FFMpegStream::~FFMpegStream()
|
||||
|
||||
Point CVideoInstance::size()
|
||||
{
|
||||
return dimensions;
|
||||
return dimensions / GH.screenHandler().getScalingFactor();
|
||||
}
|
||||
|
||||
void CVideoInstance::show(const Point & position, Canvas & canvas)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user