mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-27 01:44:31 +02:00
Widen font ptrs to ints
Hopefully we'd be overflowing shorts otherwise.
This commit is contained in:
@@ -610,7 +610,7 @@ extern const unsigned char font_data[] = {
|
||||
0x0A, 0x00, 0x00, 0x00, 0x74, 0x00, 0xD0, 0x1F, 0x40, 0x8B, 0x07, 0x3D, 0xF3, 0xF1, 0x3F, 0x3F, 0xFD, 0xF8, 0x41, 0xFF, 0x07, 0xD0, 0x1C, 0x00, 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
};
|
||||
|
||||
extern const unsigned short font_ptrs[] = {
|
||||
extern const unsigned int font_ptrs[] = {
|
||||
0x0000, 0x0010, 0x0020, 0x0030, 0x0040, 0x0050, 0x0060, 0x0070,
|
||||
0x0080, 0x0090, 0x00A0, 0x00B0, 0x00C0, 0x00D0, 0x00E0, 0x00F0,
|
||||
0x0100, 0x0110, 0x0120, 0x0130, 0x0140, 0x0150, 0x0160, 0x0170,
|
||||
|
@@ -2,10 +2,10 @@
|
||||
#define FONT_H 12
|
||||
#ifndef FONTEDITOR
|
||||
extern const unsigned char font_data[];
|
||||
extern const unsigned short font_ptrs[];
|
||||
extern const unsigned int font_ptrs[];
|
||||
extern const unsigned int font_ranges[][2];
|
||||
#else
|
||||
extern unsigned char *font_data;
|
||||
extern unsigned short *font_ptrs;
|
||||
extern unsigned int *font_ptrs;
|
||||
extern unsigned int (*font_ranges)[2];
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user