summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/namcos21.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/namcos21.c')
-rw-r--r--src/mame/video/namcos21.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/video/namcos21.c b/src/mame/video/namcos21.c
index 1be034a3e18..cfa03edfa2c 100644
--- a/src/mame/video/namcos21.c
+++ b/src/mame/video/namcos21.c
@@ -254,14 +254,14 @@ typedef struct
double z;
} edge;
-#define SWAP(A,B) { const void *temp = A; A = B; B = temp; }
+#define SWAP(T,A,B) { const T *temp = A; A = B; B = temp; }
static void
renderscanline_flat( const edge *e1, const edge *e2, int sy, unsigned color, int depthcueenable )
{
if( e1->x > e2->x )
{
- SWAP(e1,e2);
+ SWAP(edge,e1,e2);
}
{
@@ -335,11 +335,11 @@ rendertri(
{
if( v0->y > v1->y )
{
- SWAP(v0,v1);
+ SWAP(vertex,v0,v1);
}
else if( v1->y > v2->y )
{
- SWAP(v1,v2);
+ SWAP(vertex,v1,v2);
}
else
{