Skip to content

Commit

Permalink
Fix for bad bg colours at various points all through the game and eve…
Browse files Browse the repository at this point in the history
…ry boss fight (#26)

0.119u3: David Haywood fixed colors in Dynamite Duke. Changed palettesize from 3072 to 2048 colors.
  • Loading branch information
arcadez2003 authored Jul 14, 2020
1 parent d6e96ca commit d2208b6
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/drivers/dynduke.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,11 @@ static const gfx_layout spritelayout =
static const gfx_layout bg_layout =
{
16,16,
0x2000,
5, /* actually 4, 5th bit is transparency */
{ 0x100000*8+4, 0x80000*8+4,0x80000*8,4,0 },
RGN_FRAC(1,3),
6,
{ RGN_FRAC(2,3)+4, RGN_FRAC(2,3)+0,
RGN_FRAC(1,3)+4, RGN_FRAC(1,3)+0,
4, 0 },
{
0,1,2,3,8,9,10,11,
256+0,256+1,256+2,256+3,256+8,256+9,256+10,256+11
Expand All @@ -236,6 +238,7 @@ static const gfx_layout bg_layout =
512
};


static const gfx_layout fg_layout =
{
16,16,
Expand All @@ -257,10 +260,10 @@ static const gfx_layout fg_layout =

static const gfx_decode gfxdecodeinfo[] =
{
{ REGION_GFX1, 0, &charlayout, 1280, 16 },
{ REGION_GFX2, 0, &bg_layout, 2048, 32 }, // Really 0
{ REGION_GFX3, 0, &fg_layout, 512, 16 },
{ REGION_GFX4, 0, &spritelayout, 768, 32 },
{ REGION_GFX1, 0, &charlayout, 0x500, 16 },
{ REGION_GFX2, 0, &bg_layout, 0x000, 128 },
{ REGION_GFX3, 0, &fg_layout, 0x200, 16 },
{ REGION_GFX4, 0, &spritelayout, 0x300, 32 },
{ -1 }
};

Expand Down Expand Up @@ -300,7 +303,7 @@ static MACHINE_DRIVER_START( dynduke )
MDRV_SCREEN_SIZE(32*8, 32*8)
MDRV_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1)
MDRV_GFXDECODE(gfxdecodeinfo)
MDRV_PALETTE_LENGTH(2048+1024) // 2048 real palette, 1024 for transparency kludge
MDRV_PALETTE_LENGTH(2048)

MDRV_VIDEO_START(dynduke)
MDRV_VIDEO_UPDATE(dynduke)
Expand Down

0 comments on commit d2208b6

Please # to comment.