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:
@@ -20,7 +20,10 @@
|
|||||||
#define _FONT_H
|
#define _FONT_H
|
||||||
|
|
||||||
#define FIRST_CHAR (UNICODE)' '
|
#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
|
#define MAX_DELTAS 100
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
|
|||||||
Reference in New Issue
Block a user