Merge pull request #894 from glKarin/master

Explicit font's position's type is signed char
This commit is contained in:
Robert Beckebans 2024-06-02 16:03:02 +02:00 committed by GitHub
commit 8690de7160
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 4 deletions

View file

@ -41,8 +41,8 @@ If you have questions concerning this license or the applicable additional terms
// plus a checksum for internal state consistency.
typedef struct
{
char forwardmove; // *2048 for move
char sidemove; // *2048 for move
signed char forwardmove; // *2048 for move
signed char sidemove; // *2048 for move
short angleturn; // <<16 for angle delta
short consistancy; // checks for net game
byte buttons;

View file

@ -130,6 +130,8 @@ If you have questions concerning this license or the applicable additional terms
#define CPUSTRING "sparc"
#elif defined(__loongarch64)
#define CPUSTRING "loongarch64"
#elif defined(__arm__)
#define CPUSTRING "arm"
#else
#error unknown CPU
#endif

View file

@ -68,8 +68,8 @@ private:
{
byte width; // width of glyph in pixels
byte height; // height of glyph in pixels
char top; // distance in pixels from the base line to the top of the glyph
char left; // distance in pixels from the pen to the left edge of the glyph
signed char top; // distance in pixels from the base line to the top of the glyph
signed char left; // distance in pixels from the pen to the left edge of the glyph
byte xSkip; // x adjustment after rendering this glyph
uint16 s; // x offset in image where glyph starts (in pixels)
uint16 t; // y offset in image where glyph starts (in pixels)