From 0e59b999fa976de2d00490f552a1ff0a27d40f63 Mon Sep 17 00:00:00 2001 From: João Silva Date: Sun, 29 Jan 2017 04:55:23 +0000 Subject: Converted most types to stdint-style (fixing a few in the process). --- source/gfx.h | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'source/gfx.h') diff --git a/source/gfx.h b/source/gfx.h index c840d58..c5f50cb 100644 --- a/source/gfx.h +++ b/source/gfx.h @@ -14,8 +14,7 @@ void S9xUpdateScreen(); void RenderLine(uint8_t line); void S9xBuildDirectColourMaps(); -// External port interface which must be implemented or initialised for each -// port. +// External port interface which must be implemented or initialised for each port. extern struct SGFX GFX; bool S9xInitGFX(); @@ -37,7 +36,7 @@ struct SGFX uint32_t Pitch; // Setup in call to S9xInitGFX() - int Delta; + int32_t Delta; uint16_t* X2; uint16_t* ZERO_OR_X2; uint16_t* ZERO; @@ -118,12 +117,12 @@ typedef struct struct SLineMatrixData { - short MatrixA; - short MatrixB; - short MatrixC; - short MatrixD; - short CentreX; - short CentreY; + int16_t MatrixA; + int16_t MatrixB; + int16_t MatrixC; + int16_t MatrixD; + int16_t CentreX; + int16_t CentreY; }; extern uint32_t odd_high [4][16]; -- cgit v1.2.3