Skip to content

Commit

Permalink
Made palette settings for screen explicit and mandatory for ind16 mod…
Browse files Browse the repository at this point in the history
…e (nw)
  • Loading branch information
mmicko committed Mar 14, 2014
1 parent 1c83782 commit b5a348c
Show file tree
Hide file tree
Showing 1,111 changed files with 1,948 additions and 93 deletions.
1 change: 1 addition & 0 deletions src/emu/bus/isa/ega.c
Expand Up @@ -471,6 +471,7 @@ MACHINE_CONFIG_FRAGMENT( pcvideo_ega )
MCFG_SCREEN_ADD(EGA_SCREEN_NAME, RASTER)
MCFG_SCREEN_RAW_PARAMS(16257000,912,0,640,262,0,200)
MCFG_SCREEN_UPDATE_DEVICE(EGA_CRTC_NAME, crtc_ega_device, screen_update)
MCFG_SCREEN_PALETTE("palette")

MCFG_PALETTE_ADD( "palette", 64 )
MCFG_CRTC_EGA_ADD(EGA_CRTC_NAME, 16257000/8, crtc_ega_ega_intf)
Expand Down
32 changes: 8 additions & 24 deletions src/emu/screen.c
Expand Up @@ -53,14 +53,12 @@ screen_device::screen_device(const machine_config &mconfig, const char *tag, dev
m_yoffset(0.0f),
m_xscale(1.0f),
m_yscale(1.0f),
m_palette_tag(NULL),
m_palette_base(0),
m_palette(*this),
m_video_attributes(0),
m_container(NULL),
m_width(100),
m_height(100),
m_visarea(0, 99, 0, 99),
m_palette(NULL),
m_curbitmap(0),
m_curtexture(0),
m_changed(true),
Expand Down Expand Up @@ -221,11 +219,9 @@ void screen_device::static_set_screen_vblank(device_t &device, screen_vblank_del
// configuration
//-------------------------------------------------

void screen_device::static_set_palette(device_t &device, const char *palette, int base)
void screen_device::static_set_palette(device_t &device, const char *tag)
{
screen_device &screen = downcast<screen_device &>(device);
screen.m_palette_tag = palette;
screen.m_palette_base = base;
downcast<screen_device &>(device).m_palette.set_tag(tag);
}


Expand Down Expand Up @@ -265,9 +261,11 @@ void screen_device::device_validity_check(validity_checker &valid) const
if (m_refresh == 0)
mame_printf_error("Invalid (zero) refresh rate\n");

// check for valid palette
if (m_palette_tag != NULL && siblingdevice(m_palette_tag) == NULL)
mame_printf_error("Unable to location specified palette '%s'\n", m_palette_tag);
texture_format texformat = !m_screen_update_ind16.isnull() ? TEXFORMAT_PALETTE16 : TEXFORMAT_RGB32;
if (m_palette == NULL && texformat == TEXFORMAT_PALETTE16)
mame_printf_error("Screen does not have palette defined\n");
if (m_palette != NULL && texformat == TEXFORMAT_RGB32)
mame_printf_warning("Screen does not need palette defined\n");
}


Expand All @@ -282,27 +280,13 @@ void screen_device::device_start()
m_screen_update_rgb32.bind_relative_to(*owner());
m_screen_vblank.bind_relative_to(*owner());

// find our palette: first find the specified device, otherwise look for a subdevice
// named 'palette'; finally, look for a global 'palette' at the root
if (m_palette_tag != NULL)
m_palette = siblingdevice<palette_device>(m_palette_tag);
if (m_palette == NULL)
m_palette = siblingdevice<palette_device>("palette");
if (m_palette == NULL)
m_palette = subdevice<palette_device>("palette");
if (m_palette == NULL)
m_palette = subdevice<palette_device>(":palette");

// if we have a palette and it's not started, wait for it
if (m_palette != NULL && !m_palette->started())
throw device_missing_dependencies();

// configure bitmap formats and allocate screen bitmaps
texture_format texformat = !m_screen_update_ind16.isnull() ? TEXFORMAT_PALETTE16 : TEXFORMAT_RGB32;

if (m_palette == NULL && texformat == TEXFORMAT_PALETTE16)
throw emu_fatalerror("Screen does not have palette defined\n");

for (int index = 0; index < ARRAY_LENGTH(m_bitmap); index++)
{
m_bitmap[index].set_format(format(), texformat);
Expand Down
10 changes: 5 additions & 5 deletions src/emu/screen.h
Expand Up @@ -179,7 +179,7 @@ class screen_device : public device_t
static void static_set_screen_update(device_t &device, screen_update_ind16_delegate callback);
static void static_set_screen_update(device_t &device, screen_update_rgb32_delegate callback);
static void static_set_screen_vblank(device_t &device, screen_vblank_delegate callback);
static void static_set_palette(device_t &device, const char *palette, int base);
static void static_set_palette(device_t &device, const char *tag);
static void static_set_video_attributes(device_t &device, UINT32 flags);

// information getters
Expand Down Expand Up @@ -261,8 +261,7 @@ class screen_device : public device_t
screen_update_ind16_delegate m_screen_update_ind16; // screen update callback (16-bit palette)
screen_update_rgb32_delegate m_screen_update_rgb32; // screen update callback (32-bit RGB)
screen_vblank_delegate m_screen_vblank; // screen vblank callback
const char * m_palette_tag; // tag to our palette
int m_palette_base; // base of our palette
optional_device<palette_device> m_palette; // our palette
UINT32 m_video_attributes; // flags describing the video system

// internal state
Expand All @@ -274,7 +273,6 @@ class screen_device : public device_t
rectangle m_visarea; // current visible area (HBLANK end/start, VBLANK end/start)

// textures and bitmaps
palette_device * m_palette; // our palette
texture_format m_texformat; // texture format
render_texture * m_texture[2]; // 2x textures for the screen bitmap
screen_bitmap m_bitmap[2]; // 2x bitmaps for rendering
Expand Down Expand Up @@ -383,7 +381,9 @@ typedef device_type_iterator<&device_creator<screen_device>, screen_device> scre
#define MCFG_SCREEN_VBLANK_DEVICE(_device, _class, _method) \
screen_device::static_set_screen_vblank(*device, screen_vblank_delegate(&_class::_method, #_class "::" #_method, _device, (_class *)0));
#define MCFG_SCREEN_PALETTE(_palette_tag) \
screen_device::static_set_palette(*device, _palette_tag, 0);
screen_device::static_set_palette(*device, "^" _palette_tag);
#define MCFG_SCREEN_NO_PALETTE \
screen_device::static_set_palette(*device, FINDER_DUMMY_TAG);
#define MCFG_SCREEN_VIDEO_ATTRIBUTES(_flags) \
screen_device::static_set_video_attributes(*device, _flags);

Expand Down
3 changes: 2 additions & 1 deletion src/emu/video/psx.c
Expand Up @@ -3804,8 +3804,9 @@ MACHINE_CONFIG_FRAGMENT( psxgpu )
MCFG_SCREEN_VISIBLE_AREA( 0, 639, 0, 479 )
MCFG_SCREEN_UPDATE_DEVICE( DEVICE_SELF, psxgpu_device, update_screen )
((screen_device *)device)->register_vblank_callback(vblank_state_delegate(FUNC(psxgpu_device::vblank), (psxgpu_device *) owner));
MCFG_SCREEN_PALETTE("palette")

MCFG_PALETTE_ADD( "screen:palette", 65536 )
MCFG_PALETTE_ADD( "palette", 65536 )
MCFG_PALETTE_INIT_OWNER(psxgpu_device, psx)
MACHINE_CONFIG_END

Expand Down
3 changes: 2 additions & 1 deletion src/mame/drivers/1942.c
Expand Up @@ -552,7 +552,7 @@ static MACHINE_CONFIG_START( 1942, _1942_state )
MCFG_SCREEN_SIZE(32*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1)
MCFG_SCREEN_UPDATE_DRIVER(_1942_state, screen_update_1942)

MCFG_SCREEN_PALETTE("palette")

/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")
Expand Down Expand Up @@ -613,6 +613,7 @@ static MACHINE_CONFIG_START( 1942p, _1942_state )
MCFG_SCREEN_SIZE(32*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1)
MCFG_SCREEN_UPDATE_DRIVER(_1942_state, screen_update_1942p)
MCFG_SCREEN_PALETTE("palette")


/* sound hardware */
Expand Down
1 change: 1 addition & 0 deletions src/mame/drivers/1943.c
Expand Up @@ -319,6 +319,7 @@ static MACHINE_CONFIG_START( 1943, _1943_state )
MCFG_SCREEN_SIZE(32*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1)
MCFG_SCREEN_UPDATE_DRIVER(_1943_state, screen_update_1943)
MCFG_SCREEN_PALETTE("palette")

MCFG_GFXDECODE_ADD("gfxdecode", 1943)
MCFG_PALETTE_ADD("palette", 32*4+16*16+16*16+16*16)
Expand Down
1 change: 1 addition & 0 deletions src/mame/drivers/1945kiii.c
Expand Up @@ -274,6 +274,7 @@ static MACHINE_CONFIG_START( k3, k3_state )
MCFG_SCREEN_SIZE(64*8, 64*8)
MCFG_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 28*8-1)
MCFG_SCREEN_UPDATE_DRIVER(k3_state, screen_update_k3)
MCFG_SCREEN_PALETTE("palette")

MCFG_PALETTE_ADD("palette", 0x800)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
Expand Down
2 changes: 2 additions & 0 deletions src/mame/drivers/40love.c
Expand Up @@ -1073,6 +1073,7 @@ static MACHINE_CONFIG_START( 40love, fortyl_state )
MCFG_SCREEN_SIZE(64*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(128,128+255, 2*8, 30*8-1)
MCFG_SCREEN_UPDATE_DRIVER(fortyl_state, screen_update_fortyl)
MCFG_SCREEN_PALETTE("palette")

MCFG_GFXDECODE_ADD("gfxdecode", 40love)
MCFG_PALETTE_ADD("palette", 1024)
Expand Down Expand Up @@ -1128,6 +1129,7 @@ static MACHINE_CONFIG_START( undoukai, fortyl_state )
MCFG_SCREEN_SIZE(64*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(128,128+255, 2*8, 30*8-1)
MCFG_SCREEN_UPDATE_DRIVER(fortyl_state, screen_update_fortyl)
MCFG_SCREEN_PALETTE("palette")

MCFG_GFXDECODE_ADD("gfxdecode", 40love)
MCFG_PALETTE_ADD("palette", 1024)
Expand Down
1 change: 1 addition & 0 deletions src/mame/drivers/4enraya.c
Expand Up @@ -326,6 +326,7 @@ static MACHINE_CONFIG_START( 4enraya, _4enraya_state )
MCFG_SCREEN_SIZE(32*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1)
MCFG_SCREEN_UPDATE_DRIVER(_4enraya_state, screen_update_4enraya)
MCFG_SCREEN_PALETTE("palette")

MCFG_GFXDECODE_ADD("gfxdecode", 4enraya)

Expand Down
1 change: 1 addition & 0 deletions src/mame/drivers/4roses.c
Expand Up @@ -400,6 +400,7 @@ static MACHINE_CONFIG_START( 4roses, _4roses_state )
MCFG_SCREEN_SIZE((124+1)*4, (30+1)*8) /* guess. taken from funworld games */
MCFG_SCREEN_VISIBLE_AREA(0*4, 96*4-1, 0*8, 29*8-1) /* guess. taken from funworld games */
MCFG_SCREEN_UPDATE_DRIVER(_4roses_state, screen_update_funworld)
MCFG_SCREEN_PALETTE("palette")

MCFG_GFXDECODE_ADD("gfxdecode", 4roses)

Expand Down
1 change: 1 addition & 0 deletions src/mame/drivers/5clown.c
Expand Up @@ -1064,6 +1064,7 @@ static MACHINE_CONFIG_START( fclown, _5clown_state )
MCFG_SCREEN_SIZE((39+1)*8, (31+1)*8)
MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1)
MCFG_SCREEN_UPDATE_DRIVER(_5clown_state, screen_update_fclown)
MCFG_SCREEN_PALETTE("palette")

MCFG_GFXDECODE_ADD("gfxdecode", fclown)
MCFG_PALETTE_ADD("palette", 256)
Expand Down
1 change: 1 addition & 0 deletions src/mame/drivers/88games.c
Expand Up @@ -365,6 +365,7 @@ static MACHINE_CONFIG_START( 88games, _88games_state )
MCFG_SCREEN_SIZE(64*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(13*8, (64-13)*8-1, 2*8, 30*8-1 )
MCFG_SCREEN_UPDATE_DRIVER(_88games_state, screen_update_88games)
MCFG_SCREEN_PALETTE("palette")

MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_ENABLE_SHADOWS()
Expand Down
1 change: 1 addition & 0 deletions src/mame/drivers/ace.c
Expand Up @@ -352,6 +352,7 @@ static MACHINE_CONFIG_START( ace, aceal_state )
MCFG_SCREEN_SIZE(32*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(4*8, 32*8-1, 2*8, 32*8-1)
MCFG_SCREEN_UPDATE_DRIVER(aceal_state, screen_update_ace)
MCFG_SCREEN_PALETTE("palette")

MCFG_GFXDECODE_ADD("gfxdecode", ace)
MCFG_PALETTE_ADD_BLACK_AND_WHITE("palette")
Expand Down
1 change: 1 addition & 0 deletions src/mame/drivers/acefruit.c
Expand Up @@ -617,6 +617,7 @@ static MACHINE_CONFIG_START( acefruit, acefruit_state )
MCFG_SCREEN_SIZE(512, 256)
MCFG_SCREEN_VISIBLE_AREA(0, 511, 0, 255)
MCFG_SCREEN_UPDATE_DRIVER(acefruit_state, screen_update_acefruit)
MCFG_SCREEN_PALETTE("palette")

MCFG_PALETTE_ADD("palette", 16)
MCFG_PALETTE_INIT_OWNER(acefruit_state, acefruit)
Expand Down
1 change: 1 addition & 0 deletions src/mame/drivers/acommand.c
Expand Up @@ -618,6 +618,7 @@ static MACHINE_CONFIG_START( acommand, acommand_state )
MCFG_SCREEN_SIZE(32*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1)
MCFG_SCREEN_UPDATE_DRIVER(acommand_state, screen_update_acommand)
MCFG_SCREEN_PALETTE("palette")

MCFG_GFXDECODE_ADD("gfxdecode", acommand)
MCFG_PALETTE_ADD("palette", 0x4000)
Expand Down
2 changes: 2 additions & 0 deletions src/mame/drivers/actfancr.c
Expand Up @@ -324,6 +324,7 @@ static MACHINE_CONFIG_START( actfancr, actfancr_state )
MCFG_SCREEN_SIZE(32*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1)
MCFG_SCREEN_UPDATE_DRIVER(actfancr_state, screen_update_actfancr)
MCFG_SCREEN_PALETTE("palette")

MCFG_GFXDECODE_ADD("gfxdecode", actfan)

Expand Down Expand Up @@ -379,6 +380,7 @@ static MACHINE_CONFIG_START( triothep, actfancr_state )
MCFG_SCREEN_SIZE(32*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1)
MCFG_SCREEN_UPDATE_DRIVER(actfancr_state, screen_update_actfancr)
MCFG_SCREEN_PALETTE("palette")

MCFG_GFXDECODE_ADD("gfxdecode", triothep)

Expand Down
3 changes: 3 additions & 0 deletions src/mame/drivers/adp.c
Expand Up @@ -644,6 +644,7 @@ static MACHINE_CONFIG_START( quickjac, adp_state )
MCFG_SCREEN_SIZE(384, 280)
MCFG_SCREEN_VISIBLE_AREA(0, 384-1, 0, 280-1)
MCFG_SCREEN_UPDATE_DRIVER(adp_state, screen_update)
MCFG_SCREEN_PALETTE("palette")

MCFG_PALETTE_ADD("palette", 0x10)

Expand Down Expand Up @@ -680,6 +681,7 @@ static MACHINE_CONFIG_START( skattv, adp_state )
MCFG_SCREEN_SIZE(384, 280)
MCFG_SCREEN_VISIBLE_AREA(0, 384-1, 0, 280-1)
MCFG_SCREEN_UPDATE_DRIVER(adp_state, screen_update)
MCFG_SCREEN_PALETTE("palette")

MCFG_PALETTE_ADD("palette", 0x10)

Expand Down Expand Up @@ -715,6 +717,7 @@ static MACHINE_CONFIG_START( backgamn, adp_state )
MCFG_SCREEN_SIZE(640, 480)
MCFG_SCREEN_VISIBLE_AREA(0, 640-1, 0, 480-1)
MCFG_SCREEN_UPDATE_DRIVER(adp_state, screen_update)
MCFG_SCREEN_PALETTE("palette")

MCFG_PALETTE_ADD("palette", 0x10)

Expand Down
1 change: 1 addition & 0 deletions src/mame/drivers/aeroboto.c
Expand Up @@ -260,6 +260,7 @@ static MACHINE_CONFIG_START( formatz, aeroboto_state )
MCFG_SCREEN_SIZE(32*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(0*8, 31*8-1, 2*8, 30*8-1)
MCFG_SCREEN_UPDATE_DRIVER(aeroboto_state, screen_update_aeroboto)
MCFG_SCREEN_PALETTE("palette")

MCFG_GFXDECODE_ADD("gfxdecode", aeroboto)

Expand Down
13 changes: 12 additions & 1 deletion src/mame/drivers/aerofgt.c
Expand Up @@ -1325,6 +1325,7 @@ static MACHINE_CONFIG_START( pspikes, aerofgt_state )
MCFG_SCREEN_SIZE(64*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(0*8+4, 44*8+4-1, 0*8, 30*8-1)
MCFG_SCREEN_UPDATE_DRIVER(aerofgt_state, screen_update_pspikes)
MCFG_SCREEN_PALETTE("palette")

MCFG_GFXDECODE_ADD("gfxdecode", pspikes)
MCFG_PALETTE_ADD("palette", 2048)
Expand Down Expand Up @@ -1368,6 +1369,7 @@ static MACHINE_CONFIG_START( spikes91, aerofgt_state )
MCFG_SCREEN_SIZE(64*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(0*8, 320-1, 0*8+4, 224+4-1)
MCFG_SCREEN_UPDATE_DRIVER(aerofgt_state, screen_update_spikes91)
MCFG_SCREEN_PALETTE("palette")

MCFG_GFXDECODE_ADD("gfxdecode", spikes91)
MCFG_PALETTE_ADD("palette", 2048)
Expand Down Expand Up @@ -1401,6 +1403,7 @@ static MACHINE_CONFIG_START( pspikesb, aerofgt_state )
MCFG_SCREEN_SIZE(64*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(0*8+4, 44*8+4-1, 0*8, 30*8-1)
MCFG_SCREEN_UPDATE_DRIVER(aerofgt_state, screen_update_pspikesb)
MCFG_SCREEN_PALETTE("palette")

MCFG_GFXDECODE_ADD("gfxdecode", pspikesb)
MCFG_PALETTE_ADD("palette", 2048)
Expand Down Expand Up @@ -1432,6 +1435,7 @@ static MACHINE_CONFIG_START( pspikesc, aerofgt_state )
MCFG_SCREEN_SIZE(64*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(0*8+4, 44*8+4-1, 0*8, 30*8-1)
MCFG_SCREEN_UPDATE_DRIVER(aerofgt_state, screen_update_pspikes)
MCFG_SCREEN_PALETTE("palette")

MCFG_GFXDECODE_ADD("gfxdecode", pspikes)
MCFG_PALETTE_ADD("palette", 2048)
Expand Down Expand Up @@ -1474,6 +1478,7 @@ static MACHINE_CONFIG_START( karatblz, aerofgt_state )
MCFG_SCREEN_SIZE(64*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(1*8, 45*8-1, 0*8, 30*8-1)
MCFG_SCREEN_UPDATE_DRIVER(aerofgt_state, screen_update_karatblz)
MCFG_SCREEN_PALETTE("palette")

MCFG_GFXDECODE_ADD("gfxdecode", turbofrc)
MCFG_PALETTE_ADD("palette", 1024)
Expand Down Expand Up @@ -1526,6 +1531,7 @@ static MACHINE_CONFIG_START( spinlbrk, aerofgt_state )
MCFG_SCREEN_SIZE(64*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(1*8, 45*8-1, 0*8, 30*8-1)
MCFG_SCREEN_UPDATE_DRIVER(aerofgt_state, screen_update_spinlbrk)
MCFG_SCREEN_PALETTE("palette")

MCFG_GFXDECODE_ADD("gfxdecode", turbofrc)
MCFG_PALETTE_ADD("palette", 1024)
Expand Down Expand Up @@ -1579,6 +1585,7 @@ static MACHINE_CONFIG_START( turbofrc, aerofgt_state )
MCFG_SCREEN_SIZE(64*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(0*8, 44*8-1, 0*8, 30*8-1)
MCFG_SCREEN_UPDATE_DRIVER(aerofgt_state, screen_update_turbofrc)
MCFG_SCREEN_PALETTE("palette")

MCFG_GFXDECODE_ADD("gfxdecode", turbofrc)
MCFG_PALETTE_ADD("palette", 1024)
Expand Down Expand Up @@ -1632,6 +1639,7 @@ static MACHINE_CONFIG_START( aerofgtb, aerofgt_state )
MCFG_SCREEN_SIZE(64*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(0*8+12, 40*8-1+12, 0*8, 28*8-1)
MCFG_SCREEN_UPDATE_DRIVER(aerofgt_state, screen_update_turbofrc)
MCFG_SCREEN_PALETTE("palette")

MCFG_GFXDECODE_ADD("gfxdecode", aerofgtb)
MCFG_PALETTE_ADD("palette", 1024)
Expand Down Expand Up @@ -1685,6 +1693,7 @@ static MACHINE_CONFIG_START( aerofgt, aerofgt_state )
MCFG_SCREEN_SIZE(64*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 28*8-1)
MCFG_SCREEN_UPDATE_DRIVER(aerofgt_state, screen_update_aerofgt)
MCFG_SCREEN_PALETTE("palette")

MCFG_GFXDECODE_ADD("gfxdecode", aerofgt)
MCFG_PALETTE_ADD("palette", 1024)
Expand Down Expand Up @@ -1730,6 +1739,7 @@ static MACHINE_CONFIG_START( aerfboot, aerofgt_state )
MCFG_SCREEN_SIZE(64*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(0*8+12, 40*8-1+12, 0*8, 28*8-1)
MCFG_SCREEN_UPDATE_DRIVER(aerofgt_state, screen_update_aerfboot)
MCFG_SCREEN_PALETTE("palette")

MCFG_GFXDECODE_ADD("gfxdecode", aerfboot)
MCFG_PALETTE_ADD("palette", 1024)
Expand Down Expand Up @@ -1762,6 +1772,7 @@ static MACHINE_CONFIG_START( aerfboo2, aerofgt_state )
MCFG_SCREEN_SIZE(64*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(0*8+12, 40*8-1+12, 0*8, 28*8-1)
MCFG_SCREEN_UPDATE_DRIVER(aerofgt_state, screen_update_aerfboo2)
MCFG_SCREEN_PALETTE("palette")

MCFG_GFXDECODE_ADD("gfxdecode", aerfboo2)
MCFG_PALETTE_ADD("palette", 1024)
Expand Down Expand Up @@ -1795,7 +1806,7 @@ static MACHINE_CONFIG_START( wbbc97, aerofgt_state )
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0))
MCFG_SCREEN_SIZE(64*8, 64*8)
MCFG_SCREEN_VISIBLE_AREA(0*8+14, 44*8-1+4, 0*8, 30*8-1)
MCFG_SCREEN_UPDATE_DRIVER(aerofgt_state, screen_update_wbbc97)
MCFG_SCREEN_UPDATE_DRIVER(aerofgt_state, screen_update_wbbc97)

MCFG_GFXDECODE_ADD("gfxdecode", wbbc97)
MCFG_PALETTE_ADD("palette", 2048)
Expand Down
1 change: 1 addition & 0 deletions src/mame/drivers/airbustr.c
Expand Up @@ -625,6 +625,7 @@ static MACHINE_CONFIG_START( airbustr, airbustr_state )
MCFG_SCREEN_VISIBLE_AREA(0, 32*8-1, 2*8, 30*8-1)
MCFG_SCREEN_UPDATE_DRIVER(airbustr_state, screen_update_airbustr)
MCFG_SCREEN_VBLANK_DRIVER(airbustr_state, screen_eof_airbustr)
MCFG_SCREEN_PALETTE("palette")

MCFG_GFXDECODE_ADD("gfxdecode", airbustr)
MCFG_PALETTE_ADD("palette", 768)
Expand Down
1 change: 1 addition & 0 deletions src/mame/drivers/ajax.c
Expand Up @@ -214,6 +214,7 @@ static MACHINE_CONFIG_START( ajax, ajax_state )
MCFG_SCREEN_SIZE(64*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(14*8, (64-14)*8-1, 2*8, 30*8-1 )
MCFG_SCREEN_UPDATE_DRIVER(ajax_state, screen_update_ajax)
MCFG_SCREEN_PALETTE("palette")

MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_ENABLE_SHADOWS()
Expand Down

0 comments on commit b5a348c

Please sign in to comment.