summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/osborne1.cpp
diff options
context:
space:
mode:
authorGravatarGravatar AJR <ajrhacker@users.noreply.github.com>2016-10-23 00:22:00 +0200
committerGravatarGravatar AJR <ajrhacker@users.noreply.github.com>2016-10-22 18:45:04 -0400
commit7d41a1f619f0e03eeaf7acc2edde6c2671779e03 (patch)
tree4b8e1df6b0bd371b296c55f55f17ef7159543284 /src/mame/drivers/osborne1.cpp
parentf1dcd36b73aa0a8afd9a0053c97c668acc3e0319 (diff)
downloadmame-7d41a1f619f0e03eeaf7acc2edde6c2671779e03.tar.xz
mame-7d41a1f619f0e03eeaf7acc2edde6c2671779e03.zip
Improvements to rgb_t (nw)
- Make most class methods constexpr - Make color constants (white, black, etc.) into constexpr factory methods, in order to fix a static initialization problem discussed on the MAMEWorld forums. (Note that while C++14 allows constexpr member variables to be initialized outside classes, current compilers' support for C++14 constexpr rules has proven to be lamentably deficient.) - Create bitmap_rgb32::erase to simplify syntax in update handlers
Diffstat (limited to 'src/mame/drivers/osborne1.cpp')
-rw-r--r--src/mame/drivers/osborne1.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/drivers/osborne1.cpp b/src/mame/drivers/osborne1.cpp
index 5f5ddafc15d..f94df70c8b5 100644
--- a/src/mame/drivers/osborne1.cpp
+++ b/src/mame/drivers/osborne1.cpp
@@ -244,7 +244,7 @@ static MACHINE_CONFIG_START( osborne1, osborne1_state )
MCFG_CPU_IO_MAP(osborne1_io)
MCFG_Z80_SET_IRQACK_CALLBACK(WRITELINE(osborne1_state, irqack_w))
- MCFG_SCREEN_ADD_MONOCHROME("screen", RASTER, rgb_t::green)
+ MCFG_SCREEN_ADD_MONOCHROME("screen", RASTER, rgb_t::green())
MCFG_SCREEN_UPDATE_DRIVER(osborne1_state, screen_update)
MCFG_SCREEN_RAW_PARAMS( MAIN_CLOCK, 1024, 0, 104*8, 260, 0, 24*10 )
MCFG_SCREEN_PALETTE("palette")