summaryrefslogtreecommitdiff
path: root/src/resources/image.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-26 18:40:15 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-26 18:40:15 +0300
commit3c374b32aafb85dca19d39d5e431c6efe0302f27 (patch)
tree2bf911551c92af6ea69a53134fd3353d7bb57f37 /src/resources/image.cpp
parent780c9da133b956785cb9c0d9c5e3e67f8209e15c (diff)
downloadplus-3c374b32aafb85dca19d39d5e431c6efe0302f27.tar.gz
plus-3c374b32aafb85dca19d39d5e431c6efe0302f27.tar.bz2
plus-3c374b32aafb85dca19d39d5e431c6efe0302f27.tar.xz
plus-3c374b32aafb85dca19d39d5e431c6efe0302f27.zip
Add const to graphics class.
Diffstat (limited to 'src/resources/image.cpp')
-rw-r--r--src/resources/image.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/image.cpp b/src/resources/image.cpp
index 9c5909b8d..3b91b3f31 100644
--- a/src/resources/image.cpp
+++ b/src/resources/image.cpp
@@ -286,7 +286,7 @@ void Image::setAlpha(float alpha)
}
}
-Image* Image::SDLgetScaledImage(int width, int height)
+Image* Image::SDLgetScaledImage(const int width, const int height) const
{
// No scaling on incorrect new values.
if (width == 0 || height == 0)