summaryrefslogtreecommitdiff
path: root/lib/resources.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:23:48 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:23:48 +0200
commitee1c8c5c25d25dfa42120125a8a45dc9831ee412 (patch)
tree67aa287157db954e0cadeee05b4aad331eb2ecf2 /lib/resources.h
parent5.13 (diff)
downloadFreeFileSync-ee1c8c5c25d25dfa42120125a8a45dc9831ee412.tar.gz
FreeFileSync-ee1c8c5c25d25dfa42120125a8a45dc9831ee412.tar.bz2
FreeFileSync-ee1c8c5c25d25dfa42120125a8a45dc9831ee412.zip
5.14
Diffstat (limited to 'lib/resources.h')
-rw-r--r--lib/resources.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/resources.h b/lib/resources.h
index 9081ff4e..a8d9469c 100644
--- a/lib/resources.h
+++ b/lib/resources.h
@@ -18,7 +18,7 @@ class GlobalResources
public:
static const GlobalResources& instance();
- static const wxBitmap& getImage(const wxString& name) { return instance().getImageInt(name); }
+ const wxBitmap& getImage(const wxString& name) const;
//global image resource objects
wxAnimation aniWink;
@@ -30,9 +30,11 @@ private:
GlobalResources(const GlobalResources&);
GlobalResources& operator=(const GlobalResources&);
- const wxBitmap& getImageInt(const wxString& name) const;
-
std::map<wxString, wxBitmap> bitmaps;
};
+
+inline
+const wxBitmap& getResourceImage(const wxString& name) { return GlobalResources::instance().getImage(name); }
+
#endif // RESOURCES_H_INCLUDED
bgstack15