summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/binbug.cpp
diff options
context:
space:
mode:
authorGravatarGravatar Dirk Best <mail@dirk-best.de>2016-03-12 02:34:23 +0100
committerGravatarGravatar Dirk Best <mail@dirk-best.de>2016-03-12 02:36:28 +0100
commit75e5db381bd0cbd3fd664ebf83f518cdbd86b345 (patch) (github)
tree7605cf6afe1d7fd1727544b14a55b534b705f25a /src/mame/drivers/binbug.cpp
parent30b4c5e4c006090afbe47c28970e8e4041eb43e8 (diff)
downloadmame-75e5db381bd0cbd3fd664ebf83f518cdbd86b345.tar.bz2
mame-75e5db381bd0cbd3fd664ebf83f518cdbd86b345.zip
Add support to adjust the screen color
This is now used for monochrome screens instead of creating custom palettes.
Diffstat (limited to 'src/mame/drivers/binbug.cpp')
-rw-r--r--src/mame/drivers/binbug.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/binbug.cpp b/src/mame/drivers/binbug.cpp
index ba135c2b0ed..fa05ab12f59 100644
--- a/src/mame/drivers/binbug.cpp
+++ b/src/mame/drivers/binbug.cpp
@@ -297,7 +297,7 @@ static MACHINE_CONFIG_START( binbug, binbug_state )
MCFG_S2650_FLAG_HANDLER(WRITELINE(binbug_state, binbug_serial_w))
/* video hardware */
- MCFG_SCREEN_ADD("screen", RASTER)
+ MCFG_SCREEN_ADD_MONOCHROME("screen", RASTER, rgb_t::amber)
MCFG_SCREEN_REFRESH_RATE(50)
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
MCFG_SCREEN_UPDATE_DRIVER(binbug_state, screen_update)
@@ -306,7 +306,7 @@ static MACHINE_CONFIG_START( binbug, binbug_state )
MCFG_SCREEN_PALETTE("palette")
MCFG_GFXDECODE_ADD("gfxdecode", "palette", dg640)
- MCFG_PALETTE_ADD_MONOCHROME_AMBER("palette")
+ MCFG_PALETTE_ADD_MONOCHROME("palette")
/* Keyboard */
MCFG_RS232_PORT_ADD(KEYBOARD_TAG, default_rs232_devices, "keyboard")
@@ -534,7 +534,7 @@ static MACHINE_CONFIG_START( dg680, dg680_state )
MCFG_CPU_CONFIG(dg680_daisy_chain)
/* video hardware */
- MCFG_SCREEN_ADD("screen", RASTER)
+ MCFG_SCREEN_ADD_MONOCHROME("screen", RASTER, rgb_t::amber)
MCFG_SCREEN_REFRESH_RATE(50)
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
MCFG_SCREEN_UPDATE_DRIVER(binbug_state, screen_update)
@@ -543,7 +543,7 @@ static MACHINE_CONFIG_START( dg680, dg680_state )
MCFG_SCREEN_PALETTE("palette")
MCFG_GFXDECODE_ADD("gfxdecode", "palette", dg640)
- MCFG_PALETTE_ADD_MONOCHROME_AMBER("palette")
+ MCFG_PALETTE_ADD_MONOCHROME("palette")
/* Keyboard */
MCFG_DEVICE_ADD("keyb", GENERIC_KEYBOARD, 0)