summaryrefslogtreecommitdiff
path: root/src/graphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-13 19:34:10 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-13 19:34:10 +0300
commit685f380c622178ec8dea189ae94e1a4513f3c9f3 (patch)
tree21f92a33f0db017748f2e954135fcd2f90c31665 /src/graphics.h
parentd0cebb6e0e1ea10dc1d8a2a7670ac9e7e4663417 (diff)
downloadmv-685f380c622178ec8dea189ae94e1a4513f3c9f3.tar.gz
mv-685f380c622178ec8dea189ae94e1a4513f3c9f3.tar.bz2
mv-685f380c622178ec8dea189ae94e1a4513f3c9f3.tar.xz
mv-685f380c622178ec8dea189ae94e1a4513f3c9f3.zip
Fix warnings in clang compilation.
Diffstat (limited to 'src/graphics.h')
-rw-r--r--src/graphics.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/graphics.h b/src/graphics.h
index c1d5aa501..a331c21ba 100644
--- a/src/graphics.h
+++ b/src/graphics.h
@@ -35,7 +35,6 @@
class GraphicsVertexes;
class Image;
-class ImageRect;
struct SDL_Surface;
@@ -59,22 +58,23 @@ static const int defaultScreenHeight = 600;
* Sections 0, 2, 6 and 8 will remain as is. 1, 3, 4, 5 and 7 will be
* repeated to fit the size of the widget.
*/
-struct ImageRect
+class ImageRect
{
- enum ImagePosition
- {
- UPPER_LEFT = 0,
- UPPER_CENTER = 1,
- UPPER_RIGHT = 2,
- LEFT = 3,
- CENTER = 4,
- RIGHT = 5,
- LOWER_LEFT = 6,
- LOWER_CENTER = 7,
- LOWER_RIGHT = 8
- };
-
- Image *grid[9];
+ public:
+ enum ImagePosition
+ {
+ UPPER_LEFT = 0,
+ UPPER_CENTER = 1,
+ UPPER_RIGHT = 2,
+ LEFT = 3,
+ CENTER = 4,
+ RIGHT = 5,
+ LOWER_LEFT = 6,
+ LOWER_CENTER = 7,
+ LOWER_RIGHT = 8
+ };
+
+ Image *grid[9];
};
/**