MAMEWorld >> Programming
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Pages: 1

Luigi30
Lurker
Reged: 11/18/03
Posts: 215
Send PM


dwarfd.c and gfx_decode
#92301 - 11/05/06 07:02 AM


What in the hell does this mean? I want to fix it (spare time!) but I can't figure out what the hell any of this means, but I can turn the graphics from red to blue!


Code:


/* Wrong! */
static const gfx_layout tiles8x8_layout =
{
16,8,
RGN_FRAC(1,1),
4,
{ 0,1,2,3 },
{ 8, 16, 24, 32, 40, 48, 56, 64 },
{ 0*64, 1*64, 2*64, 3*64, 4*64, 5*64, 6*64, 7*64 },
16*64
};

static const gfx_decode gfxdecodeinfo[] =
{
{ REGION_GFX1, 0, &tiles8x8_layout, 0, 8 },
{ REGION_GFX2, 0, &tiles8x8_layout, 0, 8 },
{ REGION_GFX3, 0, &tiles8x8_layout, 0, 8 },
{ REGION_GFX4, 0, &tiles8x8_layout, 0, 8 },

{ -1 }
};




Haze
Reged: 09/23/03
Posts: 5245
Send PM


Re: dwarfd.c and gfx_decode new [Re: Luigi30]
#92326 - 11/05/06 12:15 PM


It means it's wrong.

Dox is working on the driver anyway, afaik he already has a working gfx decode. It's a very old, very strange piece of hardware which seems more like a computer terminal hacked to run an arcade game than anything else.

> What in the hell does this mean? I want to fix it (spare time!) but I can't figure
> out what the hell any of this means, but I can turn the graphics from red to blue!
>
> /* Wrong! */
> static const gfx_layout tiles8x8_layout =
> {
> 16,8,
> RGN_FRAC(1,1),
> 4,
> { 0,1,2,3 },
> { 8, 16, 24, 32, 40, 48, 56, 64 },
> { 0*64, 1*64, 2*64, 3*64, 4*64, 5*64, 6*64, 7*64 },
> 16*64
> };
>
> static const gfx_decode gfxdecodeinfo[] =
> {
> { REGION_GFX1, 0, &tiles8x8_layout, 0, 8 },
> { REGION_GFX2, 0, &tiles8x8_layout, 0, 8 },
> { REGION_GFX3, 0, &tiles8x8_layout, 0, 8 },
> { REGION_GFX4, 0, &tiles8x8_layout, 0, 8 },
>
> { -1 }
> };


Pages: 1

MAMEWorld >> Programming
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Pi 
0 registered and 58 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 3867