diff options
Diffstat (limited to 'src/gdisp/mcufont/mf_encoding.h')
-rw-r--r-- | src/gdisp/mcufont/mf_encoding.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gdisp/mcufont/mf_encoding.h b/src/gdisp/mcufont/mf_encoding.h index d8b7b70e..a8c44d9d 100644 --- a/src/gdisp/mcufont/mf_encoding.h +++ b/src/gdisp/mcufont/mf_encoding.h @@ -19,9 +19,11 @@ /* Type used to represent characters internally. */ #if MF_ENCODING == MF_ENCODING_ASCII -typedef char mf_char; + typedef char mf_char; + #define MFCHAR2UINT16(c) ((uint16_t)(uint8_t)(c)) #else -typedef uint16_t mf_char; + typedef uint16_t mf_char; + #define MFCHAR2UINT16(c) (c) #endif /* Type used to represent input strings. */ |