Merge pull request #112 from jrassa/video-view-image-fix

fix image ratio for first image in video game list view
This commit is contained in:
Jools Wills 2017-04-04 03:52:15 +01:00 committed by GitHub
commit c41e0bbbeb
2 changed files with 8 additions and 1 deletions

View file

@ -94,7 +94,6 @@ VideoGameListView::VideoGameListView(Window* window, FileData* root) :
initMDLabels();
initMDValues();
updateInfoPanel();
}
VideoGameListView::~VideoGameListView()
@ -343,3 +342,9 @@ void VideoGameListView::update(int deltaTime)
BasicGameListView::update(deltaTime);
mVideo.update(deltaTime);
}
void VideoGameListView::onShow()
{
GuiComponent::onShow();
updateInfoPanel();
}

View file

@ -12,6 +12,8 @@ public:
VideoGameListView(Window* window, FileData* root);
virtual ~VideoGameListView();
virtual void onShow() override;
virtual void onThemeChanged(const std::shared_ptr<ThemeData>& theme) override;
virtual const char* getName() const override { return "video"; }