aboutsummaryrefslogtreecommitdiff
path: root/source/tile.c
diff options
context:
space:
mode:
authortwinaphex2017-08-16 06:57:36 +0200
committertwinaphex2017-08-16 06:57:36 +0200
commitaa610b2ba997a945c77ce06e9a33638dedb480da (patch)
tree5f5d5448a458492bfb220eb2dc6d80096692c1b6 /source/tile.c
parent7a8802b9311099e5034054a69a309dcb17661dfa (diff)
downloadsnes9x2005-aa610b2ba997a945c77ce06e9a33638dedb480da.tar.gz
snes9x2005-aa610b2ba997a945c77ce06e9a33638dedb480da.tar.bz2
snes9x2005-aa610b2ba997a945c77ce06e9a33638dedb480da.zip
More C89_BUILD fixes
Diffstat (limited to 'source/tile.c')
-rw-r--r--source/tile.c32
1 files changed, 18 insertions, 14 deletions
diff --git a/source/tile.c b/source/tile.c
index e203ee1..3c6b43f 100644
--- a/source/tile.c
+++ b/source/tile.c
@@ -256,79 +256,83 @@ static void WRITE_4PIXELS16_FLIPPEDx2x2(int32_t Offset, uint8_t* Pixels, uint16_
void DrawTile16(uint32_t Tile, int32_t Offset, uint32_t StartLine, uint32_t LineCount)
{
- TILE_PREAMBLE();
uint8_t* bp;
+ TILE_PREAMBLE();
RENDER_TILE(WRITE_4PIXELS16, WRITE_4PIXELS16_FLIPPED, 4);
}
void DrawClippedTile16(uint32_t Tile, int32_t Offset, uint32_t StartPixel, uint32_t Width, uint32_t StartLine, uint32_t LineCount)
{
- TILE_PREAMBLE();
uint8_t* bp;
+ TILE_PREAMBLE();
TILE_CLIP_PREAMBLE();
RENDER_CLIPPED_TILE(WRITE_4PIXELS16, WRITE_4PIXELS16_FLIPPED, 4);
}
void DrawTile16HalfWidth(uint32_t Tile, int32_t Offset, uint32_t StartLine, uint32_t LineCount)
{
- TILE_PREAMBLE();
uint8_t* bp;
+ TILE_PREAMBLE();
RENDER_TILE(WRITE_4PIXELS16_HALFWIDTH, WRITE_4PIXELS16_FLIPPED_HALFWIDTH, 2);
}
void DrawClippedTile16HalfWidth(uint32_t Tile, int32_t Offset, uint32_t StartPixel, uint32_t Width, uint32_t StartLine, uint32_t LineCount)
{
- TILE_PREAMBLE();
uint8_t* bp;
+ TILE_PREAMBLE();
TILE_CLIP_PREAMBLE();
RENDER_CLIPPED_TILE(WRITE_4PIXELS16_HALFWIDTH, WRITE_4PIXELS16_FLIPPED_HALFWIDTH, 2);
}
void DrawTile16x2(uint32_t Tile, int32_t Offset, uint32_t StartLine, uint32_t LineCount)
{
- TILE_PREAMBLE();
uint8_t* bp;
+ TILE_PREAMBLE();
RENDER_TILE(WRITE_4PIXELS16x2, WRITE_4PIXELS16_FLIPPEDx2, 8);
}
void DrawClippedTile16x2(uint32_t Tile, int32_t Offset, uint32_t StartPixel, uint32_t Width, uint32_t StartLine, uint32_t LineCount)
{
- TILE_PREAMBLE();
uint8_t* bp;
+ TILE_PREAMBLE();
TILE_CLIP_PREAMBLE();
RENDER_CLIPPED_TILE(WRITE_4PIXELS16x2, WRITE_4PIXELS16_FLIPPEDx2, 8);
}
void DrawTile16x2x2(uint32_t Tile, int32_t Offset, uint32_t StartLine, uint32_t LineCount)
{
- TILE_PREAMBLE();
uint8_t* bp;
+ TILE_PREAMBLE();
RENDER_TILE(WRITE_4PIXELS16x2x2, WRITE_4PIXELS16_FLIPPEDx2x2, 8);
}
void DrawClippedTile16x2x2(uint32_t Tile, int32_t Offset, uint32_t StartPixel, uint32_t Width, uint32_t StartLine, uint32_t LineCount)
{
- TILE_PREAMBLE();
uint8_t* bp;
+ TILE_PREAMBLE();
TILE_CLIP_PREAMBLE();
RENDER_CLIPPED_TILE(WRITE_4PIXELS16x2x2, WRITE_4PIXELS16_FLIPPEDx2x2, 8);
}
void DrawLargePixel16(uint32_t Tile, int32_t Offset, uint32_t StartPixel, uint32_t Pixels, uint32_t StartLine, uint32_t LineCount)
{
- TILE_PREAMBLE();
- uint16_t* sp = (uint16_t*) GFX.S + Offset;
- uint8_t* Depth = GFX.DB + Offset;
uint16_t pixel;
+ uint16_t *sp;
+ uint8_t *Depth;
+ TILE_PREAMBLE();
+ sp = (uint16_t*) GFX.S + Offset;
+ Depth = GFX.DB + Offset;
RENDER_TILE_LARGE(ScreenColors [pixel], PLOT_PIXEL);
}
void DrawLargePixel16HalfWidth(uint32_t Tile, int32_t Offset, uint32_t StartPixel, uint32_t Pixels, uint32_t StartLine, uint32_t LineCount)
{
- TILE_PREAMBLE();
- uint16_t* sp = (uint16_t*) GFX.S + Offset;
- uint8_t* Depth = GFX.DB + Offset;
uint16_t pixel;
+ uint16_t *sp;
+ uint8_t *Depth;
+ TILE_PREAMBLE();
+ sp = (uint16_t*) GFX.S + Offset;
+ Depth = GFX.DB + Offset;
RENDER_TILE_LARGE_HALFWIDTH(ScreenColors [pixel], PLOT_PIXEL);
}