~openmw/openmw/openmw-packaging2

« back to all changes in this revision

Viewing changes to apps/openmw/mwgui/itemwidget.cpp

  • Committer: Scott Howard
  • Date: 2015-11-27 08:01:08 UTC
  • Revision ID: showard@debian.org-20151127080108-vby93jqgdvxj8d6d
Cron update. Git hash: 37c8fea

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
#include <MyGUI_ImageBox.h>
5
5
#include <MyGUI_TextBox.h>
6
6
 
7
 
#include <components/misc/resourcehelpers.hpp>
 
7
// correctIconPath
 
8
#include "../mwbase/environment.hpp"
 
9
#include "../mwbase/windowmanager.hpp"
8
10
 
9
11
#include "../mwworld/class.hpp"
10
12
 
77
79
 
78
80
    void ItemWidget::setIcon(const MWWorld::Ptr &ptr)
79
81
    {
80
 
        setIcon(Misc::ResourceHelpers::correctIconPath(ptr.getClass().getInventoryIcon(ptr)));
 
82
        setIcon(MWBase::Environment::get().getWindowManager()->correctIconPath(ptr.getClass().getInventoryIcon(ptr)));
81
83
    }
82
84
 
83
85