diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-11 21:21:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-11 21:51:42 +0300 |
commit | 35d742677a59b4340b24f703bad666f3700b14b5 (patch) | |
tree | 4fba5450036a21c94064706258c5326252fda73a /src/render/safeopenglgraphics.cpp | |
parent | 2b60803357db480eb5214a758a54363d4172987e (diff) | |
download | manaplus-35d742677a59b4340b24f703bad666f3700b14b5.tar.gz manaplus-35d742677a59b4340b24f703bad666f3700b14b5.tar.bz2 manaplus-35d742677a59b4340b24f703bad666f3700b14b5.tar.xz manaplus-35d742677a59b4340b24f703bad666f3700b14b5.zip |
Use inline attribute in some critial performance functions.
Diffstat (limited to 'src/render/safeopenglgraphics.cpp')
-rw-r--r-- | src/render/safeopenglgraphics.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/render/safeopenglgraphics.cpp b/src/render/safeopenglgraphics.cpp index 2a507808a..48fe5e2d2 100644 --- a/src/render/safeopenglgraphics.cpp +++ b/src/render/safeopenglgraphics.cpp @@ -74,7 +74,7 @@ static inline void drawQuad(const Image *restrict image, const int dstX, const int dstY, const int width, - const int height) A_NONNULL(1); + const int height) A_NONNULL(1) A_INLINE; static inline void drawQuad(const Image *restrict image, const int srcX, @@ -121,7 +121,8 @@ static inline void drawRescaledQuad(const Image *restrict const image, const int dstX, const int dstY, const int width, const int height, const int desiredWidth, - const int desiredHeight) A_NONNULL(1); + const int desiredHeight) + A_NONNULL(1) A_INLINE; static inline void drawRescaledQuad(const Image *restrict const image, const int srcX, const int srcY, |