summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/alto2.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/alto2.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/alto2.cpp')
-rw-r--r--src/mame/drivers/alto2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/alto2.cpp b/src/mame/drivers/alto2.cpp
index 7f1884639a5..a7007273401 100644
--- a/src/mame/drivers/alto2.cpp
+++ b/src/mame/drivers/alto2.cpp
@@ -270,7 +270,7 @@ static MACHINE_CONFIG_START( alto2, alto2_state )
MCFG_CPU_IO_MAP(alto2_iomem_map)
/* video hardware */
- MCFG_SCREEN_ADD("screen", RASTER)
+ MCFG_SCREEN_ADD_MONOCHROME("screen", RASTER, rgb_t::white)
MCFG_SCREEN_RAW_PARAMS(XTAL_20_16MHz,
ALTO2_DISPLAY_TOTAL_WIDTH, 0, ALTO2_DISPLAY_WIDTH,
ALTO2_DISPLAY_TOTAL_HEIGHT, 0, ALTO2_DISPLAY_HEIGHT + ALTO2_FAKE_STATUS_H)
@@ -282,7 +282,7 @@ static MACHINE_CONFIG_START( alto2, alto2_state )
MCFG_DEFAULT_LAYOUT( layout_vertical )
- MCFG_PALETTE_ADD_WHITE_AND_BLACK("palette")
+ MCFG_PALETTE_ADD_MONOCHROME("palette")
MCFG_DIABLO_DRIVES_ADD()
MACHINE_CONFIG_END