From f24ddad3fa0f843eb29a281426151cf1a5f31f4b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 4 Sep 2012 23:47:11 +0300 Subject: add const to more classes, fix other small style issues. --- src/resources/image.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/resources/image.cpp') diff --git a/src/resources/image.cpp b/src/resources/image.cpp index 33b97b633..e70ee3de5 100644 --- a/src/resources/image.cpp +++ b/src/resources/image.cpp @@ -299,11 +299,10 @@ Image* Image::SDLgetScaledImage(const int width, const int height) const return nullptr; Image* scaledImage = nullptr; - SDL_Surface* scaledSurface = nullptr; if (mSDLSurface) { - scaledSurface = zoomSurface(mSDLSurface, + SDL_Surface *const scaledSurface = zoomSurface(mSDLSurface, static_cast(width) / mBounds.w, static_cast(height) / mBounds.h, 1); -- cgit v1.2.3-60-g2f50