summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/screen.cpp
diff options
context:
space:
mode:
author Dirk Best <mail@dirk-best.de>2016-03-12 02:34:23 +0100
committer Dirk Best <mail@dirk-best.de>2016-03-12 02:36:28 +0100
commit75e5db381bd0cbd3fd664ebf83f518cdbd86b345 (patch)
tree7605cf6afe1d7fd1727544b14a55b534b705f25a /src/emu/screen.cpp
parent30b4c5e4c006090afbe47c28970e8e4041eb43e8 (diff)
Add support to adjust the screen color
This is now used for monochrome screens instead of creating custom palettes.
Diffstat (limited to 'src/emu/screen.cpp')
-rw-r--r--src/emu/screen.cpp13
1 files changed, 13 insertions, 0 deletions
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<screen_device &>(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<screen_device &>(device);
+ screen.m_color = color;
+}
+
+
//-------------------------------------------------
// device_validity_check - verify device
// configuration