summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Angelo Salese <angelosa@users.noreply.github.com>2011-10-10 19:25:47 +0000
committer Angelo Salese <angelosa@users.noreply.github.com>2011-10-10 19:25:47 +0000
commitb524032df4e359166a525aa8b745896e419e45cb (patch)
tree0f531bc1853e75128879751e4dbbc23c5a82352a
parent325dc41b5d0908532935722c267b168c2a880eb9 (diff)
Video fix from MetalliC, nw
-rw-r--r--src/mame/drivers/cavesh3.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/drivers/cavesh3.c b/src/mame/drivers/cavesh3.c
index a68d6b7ebf0..dca0479a829 100644
--- a/src/mame/drivers/cavesh3.c
+++ b/src/mame/drivers/cavesh3.c
@@ -79,8 +79,8 @@ INLINE INT8 clamp(INT8 comp)
// clr_t to r5g5b5
INLINE UINT16 clr_to_pen(const clr_t *clr)
{
-// return (clr->r << 10) | (clr->g << 5) | clr->b;
-return 0x8000 | (clr->r << 10) | (clr->g << 5) | clr->b;
+ return (clr->r << 10) | (clr->g << 5) | clr->b;
+//return 0x8000 | (clr->r << 10) | (clr->g << 5) | clr->b;
}
// add clrs
@@ -275,7 +275,7 @@ INLINE void draw_sprite(
}
// write result
- bmp[dst_x + x] = clr_to_pen(&s_clr);
+ bmp[dst_x + x] = clr_to_pen(&s_clr)|(pen&0x8000);
}
}