summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Michaël Banaan Ananas <happppp@users.noreply.github.com>2011-03-20 21:49:16 +0000
committer Michaël Banaan Ananas <happppp@users.noreply.github.com>2011-03-20 21:49:16 +0000
commit4f055c8c77429787cc6f2431fda320c448f0526d (patch)
tree48560946010bd6de8adac77be741d1407df242cb
parent8f005b2d218f74b39920e95ca5a6ea0ff718b7c6 (diff)
(colormask is more logical like this)
-rw-r--r--src/mame/video/astrocde.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/video/astrocde.c b/src/mame/video/astrocde.c
index 14aee4e101c..30333ffac8d 100644
--- a/src/mame/video/astrocde.c
+++ b/src/mame/video/astrocde.c
@@ -306,7 +306,7 @@ SCREEN_UPDATE( astrocde )
astrocde_state *state = screen->machine->driver_data<astrocde_state>();
UINT8 *videoram = state->videoram;
UINT32 sparklebase = 0;
- int colormask = (astrocade_video_config & AC_MONITOR_BW) ? 0xf : screen->machine->total_colors() - 1;
+ const int colormask = (astrocade_video_config & AC_MONITOR_BW) ? 0 : 0x1f0;
int xystep = 2 - video_mode;
int y;
@@ -350,8 +350,8 @@ SCREEN_UPDATE( astrocde )
for (xx = 0; xx < 4; xx++)
{
UINT8 pixdata = (data >> 6) & 3;
- int coldata = colorbase[pixdata] << 1;
- int luma = coldata & 0x0f;
+ int colordata = colorbase[pixdata] << 1;
+ int luma = colordata & 0x0f;
rgb_t color;
/* handle stars/sparkle */
@@ -364,7 +364,7 @@ SCREEN_UPDATE( astrocde )
if (pixdata != 0 || (sparklestar[staroffs] & 0x10))
luma = sparklestar[sparkleoffs] & 0x0f;
else if (pixdata == 0)
- coldata = luma = 0;
+ colordata = luma = 0;
}
/* update sparkle/star offsets */
@@ -372,7 +372,7 @@ SCREEN_UPDATE( astrocde )
if (++sparkleoffs >= RNG_PERIOD)
sparkleoffs = 0;
}
- color = ((coldata & 0x1f0) | luma) & colormask;
+ color = (colordata & colormask) | luma;
/* store the final color to the destination and shift */
*dest++ = color;