From 75e5db381bd0cbd3fd664ebf83f518cdbd86b345 Mon Sep 17 00:00:00 2001 From: Dirk Best Date: Sat, 12 Mar 2016 02:34:23 +0100 Subject: Add support to adjust the screen color This is now used for monochrome screens instead of creating custom palettes. --- src/emu/screen.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/emu/screen.cpp') diff --git a/src/emu/screen.cpp b/src/emu/screen.cpp index 2ae1269cdd8..c286788ea37 100644 --- a/src/emu/screen.cpp +++ b/src/emu/screen.cpp @@ -240,6 +240,19 @@ void screen_device::static_set_video_attributes(device_t &device, UINT32 flags) screen_device &screen = downcast(device); screen.m_video_attributes = flags; } + + +//------------------------------------------------- +// static_set_color - set the screen global color +//------------------------------------------------- + +void screen_device::static_set_color(device_t &device, rgb_t color) +{ + screen_device &screen = downcast(device); + screen.m_color = color; +} + + //------------------------------------------------- // device_validity_check - verify device // configuration -- cgit v1.2.3-70-g09d2