fix image ratio for first image in video game list view

This commit is contained in:
jrassa 2017-04-03 22:24:52 -04:00
parent bf1c0b841b
commit fbf349d61a
2 changed files with 8 additions and 1 deletions

View file

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

View file

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