From a8665d204255b4b0ad9ae6982f77ecd5e053c1b6 Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Mon, 11 Jun 2012 17:28:27 +0200 Subject: Changed #defined constants to consts; typedef struct -> struct --- src/graphics/common/text.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/graphics/common/text.h') diff --git a/src/graphics/common/text.h b/src/graphics/common/text.h index 5d41c5c..defa218 100644 --- a/src/graphics/common/text.h +++ b/src/graphics/common/text.h @@ -26,10 +26,10 @@ class CInstanceManager; -#define SMALLFONT 10.0f -#define BIGFONT 15.0f +const float SMALLFONT = 10.0f; +const float BIGFONT = 15.0f; -#define NORMSTRETCH 0.8f +const float NORMSTRETCH = 0.8f; @@ -58,10 +58,10 @@ enum FontColor COLOR_TABLE = 0x70, }; -#define FONT_MASK 0x03 -#define TITLE_MASK 0x0c -#define COLOR_MASK 0x70 -#define IMAGE_MASK 0x80 +const int FONT_MASK = 0x03; +const int TITLE_MASK = 0x0c; +const int COLOR_MASK = 0x70; +const int IMAGE_MASK = 0x80; -- cgit v1.2.3-1-g7c22