diff options
author | twinaphex | 2015-11-05 16:37:11 +0100 |
---|---|---|
committer | twinaphex | 2015-11-05 16:37:11 +0100 |
commit | d68763cd7cb4f7487d760a1dea17ca167d45e182 (patch) | |
tree | 74a19723b2a04d6c01f6ce59a0c0572f486ee985 /source/c4emu.c | |
parent | 3a892c0d1f6aef6b1785740d358d2159945a6110 (diff) | |
download | snes9x2005-d68763cd7cb4f7487d760a1dea17ca167d45e182.tar.gz snes9x2005-d68763cd7cb4f7487d760a1dea17ca167d45e182.tar.bz2 snes9x2005-d68763cd7cb4f7487d760a1dea17ca167d45e182.zip |
Start using stdint types
Diffstat (limited to 'source/c4emu.c')
-rw-r--r-- | source/c4emu.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/c4emu.c b/source/c4emu.c index 517df2e..c2412e1 100644 --- a/source/c4emu.c +++ b/source/c4emu.c @@ -344,8 +344,8 @@ static void C4DrawLine(int32_t X1, int32_t Y1, int16_t Z1, int32_t X2, int32_t Y2, int16_t Z2, uint8_t Color) { // Transform coordinates - C4WFXVal = (short)X1; - C4WFYVal = (short)Y1; + C4WFXVal = (int16_t)X1; + C4WFYVal = (int16_t)Y1; C4WFZVal = Z1; C4WFScale = Memory.C4RAM[0x1f90]; C4WFX2Val = Memory.C4RAM[0x1f86]; @@ -355,18 +355,18 @@ static void C4DrawLine(int32_t X1, int32_t Y1, int16_t Z1, X1 = (C4WFXVal + 48) << 8; Y1 = (C4WFYVal + 48) << 8; - C4WFXVal = (short)X2; - C4WFYVal = (short)Y2; + C4WFXVal = (int16_t)X2; + C4WFYVal = (int16_t)Y2; C4WFZVal = Z2; C4TransfWireFrame2(); X2 = (C4WFXVal + 48) << 8; Y2 = (C4WFYVal + 48) << 8; // get line info - C4WFXVal = (short)(X1 >> 8); - C4WFYVal = (short)(Y1 >> 8); - C4WFX2Val = (short)(X2 >> 8); - C4WFY2Val = (short)(Y2 >> 8); + C4WFXVal = (int16_t)(X1 >> 8); + C4WFYVal = (int16_t)(Y1 >> 8); + C4WFX2Val = (int16_t)(X2 >> 8); + C4WFY2Val = (int16_t)(Y2 >> 8); C4CalcWireFrame(); X2 = (int16_t)C4WFXVal; Y2 = (int16_t)C4WFYVal; |