summaryrefslogtreecommitdiff
path: root/src/resources/image.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-11 21:21:36 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-11 21:51:42 +0300
commit35d742677a59b4340b24f703bad666f3700b14b5 (patch)
tree4fba5450036a21c94064706258c5326252fda73a /src/resources/image.h
parent2b60803357db480eb5214a758a54363d4172987e (diff)
downloadmanaverse-35d742677a59b4340b24f703bad666f3700b14b5.tar.gz
manaverse-35d742677a59b4340b24f703bad666f3700b14b5.tar.bz2
manaverse-35d742677a59b4340b24f703bad666f3700b14b5.tar.xz
manaverse-35d742677a59b4340b24f703bad666f3700b14b5.zip
Use inline attribute in some critial performance functions.
Diffstat (limited to 'src/resources/image.h')
-rw-r--r--src/resources/image.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/image.h b/src/resources/image.h
index 046277d53..aa38f7a22 100644
--- a/src/resources/image.h
+++ b/src/resources/image.h
@@ -100,13 +100,13 @@ class Image notfinal : public Resource
/**
* Returns the width of the image.
*/
- inline int getWidth() const A_WARN_UNUSED
+ inline int getWidth() const A_WARN_UNUSED A_INLINE
{ return mBounds.w; }
/**
* Returns the height of the image.
*/
- inline int getHeight() const A_WARN_UNUSED
+ inline int getHeight() const A_WARN_UNUSED A_INLINE
{ return mBounds.h; }
/**