summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-03-15 00:26:35 +0300
committerAndrei Karas <akaras@inbox.ru>2014-03-15 00:26:35 +0300
commitff516e9f60e9554e8938d04192a8e5ec9efb5647 (patch)
treeb134dd0202377c5b182f62870b983fe078700e28 /src/resources
parent269f642099ec8e4c6bcf735496c32ee8019aaf1b (diff)
downloadmanaplus-ff516e9f60e9554e8938d04192a8e5ec9efb5647.tar.gz
manaplus-ff516e9f60e9554e8938d04192a8e5ec9efb5647.tar.bz2
manaplus-ff516e9f60e9554e8938d04192a8e5ec9efb5647.tar.xz
manaplus-ff516e9f60e9554e8938d04192a8e5ec9efb5647.zip
fix code style.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/imagehelper.cpp5
-rw-r--r--src/resources/imagehelper.h3
-rw-r--r--src/resources/openglimagehelper.cpp3
-rw-r--r--src/resources/sdl2imagehelper.h12
-rw-r--r--src/resources/sdl2softwareimagehelper.h12
-rw-r--r--src/resources/surfaceimagehelper.h12
6 files changed, 7 insertions, 40 deletions
diff --git a/src/resources/imagehelper.cpp b/src/resources/imagehelper.cpp
index 0fbc04776..d72550767 100644
--- a/src/resources/imagehelper.cpp
+++ b/src/resources/imagehelper.cpp
@@ -84,7 +84,7 @@ Image *ImageHelper::load(SDL_RWops *const rw, Dye const &dye) const
tmpImage, &rgba, SDL_SWSURFACE);
MSDL_FreeSurface(tmpImage);
- uint32_t *pixels = static_cast<uint32_t *>(surf->pixels);
+ uint32_t *const pixels = static_cast<uint32_t *const>(surf->pixels);
const int type = dye.getType();
switch (type)
@@ -203,7 +203,8 @@ SDL_Surface *ImageHelper::loadPng(SDL_RWops *const rw)
return nullptr;
}
-SDL_Surface *ImageHelper::create32BitSurface(int width, int height) const
+SDL_Surface *ImageHelper::create32BitSurface(int width,
+ int height) const
{
#if SDL_BYTEORDER == SDL_BIG_ENDIAN
const int rmask = 0xff000000;
diff --git a/src/resources/imagehelper.h b/src/resources/imagehelper.h
index e7ec4cfad..f68d8c147 100644
--- a/src/resources/imagehelper.h
+++ b/src/resources/imagehelper.h
@@ -81,7 +81,8 @@ class ImageHelper
static void dumpSurfaceFormat(const SDL_Surface *const image);
- virtual SDL_Surface *create32BitSurface(int width, int height)
+ virtual SDL_Surface *create32BitSurface(int width,
+ int height)
const A_WARN_UNUSED;
static void setEnableAlpha(const bool n)
diff --git a/src/resources/openglimagehelper.cpp b/src/resources/openglimagehelper.cpp
index 5a0a91fc1..262d839f7 100644
--- a/src/resources/openglimagehelper.cpp
+++ b/src/resources/openglimagehelper.cpp
@@ -290,7 +290,8 @@ void OpenGLImageHelper::initTextureSampler(const GLint id)
}
}
-SDL_Surface *OpenGLImageHelper::create32BitSurface(int width, int height) const
+SDL_Surface *OpenGLImageHelper::create32BitSurface(int width,
+ int height) const
{
#if SDL_BYTEORDER == SDL_BIG_ENDIAN
const int rmask = 0xff000000;
diff --git a/src/resources/sdl2imagehelper.h b/src/resources/sdl2imagehelper.h
index 44f81c433..296b50f8a 100644
--- a/src/resources/sdl2imagehelper.h
+++ b/src/resources/sdl2imagehelper.h
@@ -52,18 +52,6 @@ class SDLImageHelper final : public ImageHelper
{ }
/**
- * Loads an image from an SDL_RWops structure and recolors it.
- *
- * @param rw The SDL_RWops to load the image from.
- * @param dye The dye used to recolor the image.
- *
- * @return <code>NULL</code> if an error occurred, a valid pointer
- * otherwise.
- */
- Image *load(SDL_RWops *const rw,
- Dye const &dye) const override final A_WARN_UNUSED;
-
- /**
* Loads an image from an SDL surface.
*/
Image *load(SDL_Surface *const tmpImage) const
diff --git a/src/resources/sdl2softwareimagehelper.h b/src/resources/sdl2softwareimagehelper.h
index 01d6428b5..41af65fdb 100644
--- a/src/resources/sdl2softwareimagehelper.h
+++ b/src/resources/sdl2softwareimagehelper.h
@@ -52,18 +52,6 @@ class SDL2SoftwareImageHelper final : public ImageHelper
{ }
/**
- * Loads an image from an SDL_RWops structure and recolors it.
- *
- * @param rw The SDL_RWops to load the image from.
- * @param dye The dye used to recolor the image.
- *
- * @return <code>NULL</code> if an error occurred, a valid pointer
- * otherwise.
- */
- Image *load(SDL_RWops *const rw,
- Dye const &dye) const override final A_WARN_UNUSED;
-
- /**
* Loads an image from an SDL surface.
*/
Image *load(SDL_Surface *const tmpImage) const
diff --git a/src/resources/surfaceimagehelper.h b/src/resources/surfaceimagehelper.h
index b526c9b64..3e595009e 100644
--- a/src/resources/surfaceimagehelper.h
+++ b/src/resources/surfaceimagehelper.h
@@ -54,18 +54,6 @@ class SurfaceImageHelper final : public ImageHelper
{ }
/**
- * Loads an image from an SDL_RWops structure and recolors it.
- *
- * @param rw The SDL_RWops to load the image from.
- * @param dye The dye used to recolor the image.
- *
- * @return <code>NULL</code> if an error occurred, a valid pointer
- * otherwise.
- */
- Image *load(SDL_RWops *const rw,
- Dye const &dye) const override final A_WARN_UNUSED;
-
- /**
* Loads an image from an SDL surface.
*/
Image *load(SDL_Surface *const tmpImage) const