Fixed MAX_CHARS define to prevent overflows during casts

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1527 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2005-02-09 22:56:37 +00:00
parent 3cd468f543
commit ea6851e4d0
+4 -1
View File
@@ -20,7 +20,10 @@
#define _FONT_H
#define FIRST_CHAR (UNICODE)' '
#define MAX_CHARS 5000
// keep MAX_CHARS under 256 for now
#define MAX_CHARS 255
// MAX_CHARS gets cast to UNICODE in a few places and is used in math
// UNICODE is defined to BYTE, all strings attached
#define MAX_DELTAS 100
typedef struct