From 0b848dd3c46ee8391522f330eaf3ad0f75462e09 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sat, 24 Jan 2009 19:45:33 +0100 Subject: Code reformatting --- src/resources/image.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/resources/image.h') diff --git a/src/resources/image.h b/src/resources/image.h index a0ae66c5..0974b18b 100644 --- a/src/resources/image.h +++ b/src/resources/image.h @@ -78,7 +78,8 @@ class Image : public Resource * @return NULL if an error occurred, a valid pointer * otherwise. */ - static Resource *load(void *buffer, unsigned bufferSize, Dye const &dye); + static Resource *load(void *buffer, unsigned bufferSize, + Dye const &dye); /** * Loads an image from an SDL surface. @@ -93,12 +94,14 @@ class Image : public Resource /** * Returns the width of the image. */ - virtual int getWidth() const { return mBounds.w; } + virtual int getWidth() const + { return mBounds.w; } /** * Returns the height of the image. */ - virtual int getHeight() const { return mBounds.h; } + virtual int getHeight() const + { return mBounds.h; } /** * Creates a new image with the desired clipping rectangle. @@ -106,7 +109,7 @@ class Image : public Resource * @return NULL if creation failed and a valid * object otherwise. */ - virtual Image* getSubImage(int x, int y, int width, int height); + virtual Image *getSubImage(int x, int y, int width, int height); /** * Sets the alpha value of this image. @@ -183,7 +186,7 @@ class SubImage : public Image * @return NULL if creation failed and a valid * image otherwise. */ - Image* getSubImage(int x, int y, int width, int height); + Image *getSubImage(int x, int y, int width, int height); private: Image *mParent; -- cgit v1.2.3-70-g09d2