diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2016-10-23 00:22:00 +0200 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2016-10-22 18:45:04 -0400 |
commit | 7d41a1f619f0e03eeaf7acc2edde6c2671779e03 (patch) | |
tree | 4b8e1df6b0bd371b296c55f55f17ef7159543284 /src/mame/drivers/m79amb.cpp | |
parent | f1dcd36b73aa0a8afd9a0053c97c668acc3e0319 (diff) |
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/m79amb.cpp')
-rw-r--r-- | src/mame/drivers/m79amb.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/drivers/m79amb.cpp b/src/mame/drivers/m79amb.cpp index 89cdb4937cd..8a331688c63 100644 --- a/src/mame/drivers/m79amb.cpp +++ b/src/mame/drivers/m79amb.cpp @@ -79,7 +79,7 @@ uint32_t m79amb_state::screen_update_ramtek(screen_device &screen, bitmap_rgb32 for (i = 0; i < 8; i++) { - pen_t pen = (data & 0x80) ? rgb_t::white : rgb_t::black; + pen_t pen = (data & 0x80) ? rgb_t::white() : rgb_t::black(); bitmap.pix32(y, x) = pen; x++; |