From 3c374b32aafb85dca19d39d5e431c6efe0302f27 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 26 Aug 2012 18:40:15 +0300 Subject: Add const to graphics class. --- src/resources/image.cpp | 2 +- src/resources/image.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/resources') 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) diff --git a/src/resources/image.h b/src/resources/image.h index 84895125c..4798c87af 100644 --- a/src/resources/image.h +++ b/src/resources/image.h @@ -128,7 +128,7 @@ class Image : public Resource * * @return A new Image* object. */ - Image* SDLgetScaledImage(int width, int height); + Image* SDLgetScaledImage(const int width, const int height) const; /** * Get the alpha Channel of a SDL surface. -- cgit v1.2.3-70-g09d2