mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-04-24 02:32:18 +00:00
Merge pull request #894 from glKarin/master
Explicit font's position's type is signed char
This commit is contained in:
commit
8690de7160
3 changed files with 6 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue