summaryrefslogtreecommitdiff
path: root/src/resources/image.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-01-24 19:45:33 +0100
committerIra Rice <irarice@gmail.com>2009-01-24 15:09:20 -0700
commit0b848dd3c46ee8391522f330eaf3ad0f75462e09 (patch)
treed94d492c36e7114766a4590020ef4753eeca892e /src/resources/image.h
parent581206ab0fecbb3afc7afebedac541be51097cf5 (diff)
downloadmana-client-0b848dd3c46ee8391522f330eaf3ad0f75462e09.tar.gz
mana-client-0b848dd3c46ee8391522f330eaf3ad0f75462e09.tar.bz2
mana-client-0b848dd3c46ee8391522f330eaf3ad0f75462e09.tar.xz
mana-client-0b848dd3c46ee8391522f330eaf3ad0f75462e09.zip
Code reformatting
Diffstat (limited to 'src/resources/image.h')
-rw-r--r--src/resources/image.h13
1 files changed, 8 insertions, 5 deletions
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 <code>NULL</code> 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 <code>NULL</code> 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 <code>NULL</code> 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;