summaryrefslogtreecommitdiff
path: root/src/client/image.h
diff options
context:
space:
mode:
authorxHire <xhire@tuxportal.cz>2008-10-25 14:11:06 +0200
committerxHire <xhire@tuxportal.cz>2008-10-25 14:11:06 +0200
commitc8a9209d77a896bf49227e5aeccd54e91ccf29cc (patch)
tree6b7367406ebbc6ce3ea5e0c8668c75f6fb3f6ae9 /src/client/image.h
parentcb9deba915dd7b114eeb76601eb1c8b07c1ba90f (diff)
Changed style of the code to the K&R standard
Diffstat (limited to 'src/client/image.h')
-rw-r--r--src/client/image.h28
1 files changed, 13 insertions, 15 deletions
diff --git a/src/client/image.h b/src/client/image.h
index 5b637b2..015c0d2 100644
--- a/src/client/image.h
+++ b/src/client/image.h
@@ -1,18 +1,18 @@
#ifndef IMAGE_H
-#define IMAGE_H
+# define IMAGE_H
//#include "image.h"
-#include "interface.h"
+# include "interface.h"
-#define IMAGE_NO_ALPHA 0
-#define IMAGE_ALPHA 1
+# define IMAGE_NO_ALPHA 0
+# define IMAGE_ALPHA 1
-#define IMAGE_GROUP_BASE "base"
-#define IMAGE_GROUP_EXTENDSIO "extension"
-#define IMAGE_GROUP_USER "user"
-#define IMAGE_GROUP_OTHER "other"
+# define IMAGE_GROUP_BASE "base"
+# define IMAGE_GROUP_EXTENDSIO "extension"
+# define IMAGE_GROUP_USER "user"
+# define IMAGE_GROUP_OTHER "other"
/*
typedef struct image_struct
@@ -23,11 +23,10 @@ typedef struct image_struct
} image_data_t;
*/
-typedef struct image_struct
-{
- int w;
- int h;
- SDL_Surface *image;
+typedef struct image_struct {
+ int w;
+ int h;
+ SDL_Surface *image;
} image_t;
extern bool_t isImageInicialized();
@@ -36,8 +35,7 @@ extern image_t *addImageData(char *file, int alpha, char *name, char *group);
extern image_t *getImage(char *group, char *name);
extern void delImage(char *group, char *name);
extern void delAllImageInGroup(char *group);
-extern void drawImage(image_t * p, int x, int y, int px, int py, int w,
- int h);
+extern void drawImage(image_t * p, int x, int y, int px, int py, int w, int h);
extern void quitImageData();
#endif