diff options
| author | xHire <xhire@tuxportal.cz> | 2008-10-25 14:11:06 +0200 |
|---|---|---|
| committer | xHire <xhire@tuxportal.cz> | 2008-10-25 14:11:06 +0200 |
| commit | c8a9209d77a896bf49227e5aeccd54e91ccf29cc (patch) | |
| tree | 6b7367406ebbc6ce3ea5e0c8668c75f6fb3f6ae9 /src/client/font.h | |
| parent | cb9deba915dd7b114eeb76601eb1c8b07c1ba90f (diff) | |
Changed style of the code to the K&R standard
Diffstat (limited to 'src/client/font.h')
| -rw-r--r-- | src/client/font.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/client/font.h b/src/client/font.h index 28f7373..f728e86 100644 --- a/src/client/font.h +++ b/src/client/font.h @@ -1,27 +1,27 @@ #ifndef FONT_H -#define FONT_H +# define FONT_H -#include <SDL_ttf.h> -#include <assert.h> -#include "main.h" +# include <SDL_ttf.h> +# include <assert.h> +# include "main.h" -#define COLOR_WHITE 255, 255, 255 -#define COLOR_BLACK 0, 0, 0 +# define COLOR_WHITE 255, 255, 255 +# define COLOR_BLACK 0, 0, 0 -#define COLOR_RED 255, 0, 0 -#define COLOR_GREEN 0, 255, 0 -#define COLOR_BLUE 0, 0, 255 +# define COLOR_RED 255, 0, 0 +# define COLOR_GREEN 0, 255, 0 +# define COLOR_BLUE 0, 0, 255 -#define COLOR_YELLOW 255, 255, 0 -#define FONT_SIZE 16 +# define COLOR_YELLOW 255, 255, 0 +# define FONT_SIZE 16 extern bool_t isFontInicialized(); extern void initFont(char *file, int size); extern void drawFont(char *s, int x, int y, int r, int g, int b); extern void drawFontMaxSize(char *s, int x, int y, int w, int h, int r, int g, - int b); + int b); extern int getFontSize(); extern void getTextSize(char *s, int *w, int *h); extern void quitFont(); |