mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-01 23:12:49 +02:00
intro rework
This commit is contained in:
@@ -28,7 +28,7 @@ VideoWidgetBase::~VideoWidgetBase() = default;
|
||||
|
||||
void VideoWidgetBase::playVideo(const VideoPath & fileToPlay)
|
||||
{
|
||||
videoInstance = CCS->videoh->open(fileToPlay, false);
|
||||
videoInstance = CCS->videoh->open(fileToPlay, Point(0, 0));
|
||||
if (videoInstance)
|
||||
{
|
||||
pos.w = videoInstance->size().x;
|
||||
@@ -119,6 +119,11 @@ void VideoWidgetBase::tick(uint32_t msPassed)
|
||||
}
|
||||
}
|
||||
|
||||
Point VideoWidgetBase::size()
|
||||
{
|
||||
return videoInstance->size();
|
||||
}
|
||||
|
||||
VideoWidget::VideoWidget(const Point & position, const VideoPath & prologue, const VideoPath & looped, bool playAudio)
|
||||
: VideoWidgetBase(position, prologue, playAudio)
|
||||
, loopedVideo(looped)
|
||||
|
||||
Reference in New Issue
Block a user