summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/screen.c
diff options
context:
space:
mode:
author David Haywood <mamehaze@users.noreply.github.com>2015-10-09 14:30:50 +0100
committer David Haywood <mamehaze@users.noreply.github.com>2015-10-09 14:30:50 +0100
commit8c3375affa313bb841d993d705a370f0999c57a4 (patch)
tree8acf6b6cf471dc3b9d644155340d2ba35cb46643 /src/emu/screen.c
parentfb989bb821f049bc41d537a0421e73b8798d48ac (diff)
parentfeef4e980ecc5d2d08cd9c40d1e6f081896fc786 (diff)
Merge branch 'master' of https://github.com/mamedev/mame
Diffstat (limited to 'src/emu/screen.c')
-rw-r--r--src/emu/screen.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/emu/screen.c b/src/emu/screen.c
index c3bb09e320a..e17e0ecec91 100644
--- a/src/emu/screen.c
+++ b/src/emu/screen.c
@@ -12,6 +12,7 @@
#include "emuopts.h"
#include "png.h"
#include "rendutil.h"
+#include "validity.h"
@@ -55,6 +56,7 @@ screen_device::screen_device(const machine_config &mconfig, const char *tag, dev
m_yscale(1.0f),
m_palette(*this),
m_video_attributes(0),
+ m_orientation(0),
m_container(NULL),
m_width(100),
m_height(100),
@@ -239,6 +241,16 @@ void screen_device::static_set_video_attributes(device_t &device, UINT32 flags)
screen.m_video_attributes = flags;
}
//-------------------------------------------------
+// static_set_orientation - set the screen orientation
+//-------------------------------------------------
+
+void screen_device::static_set_orientation(device_t &device, UINT32 orientation)
+{
+ screen_device &screen = downcast<screen_device &>(device);
+ screen.m_orientation = orientation;
+}
+
+//-------------------------------------------------
// device_validity_check - verify device
// configuration
//-------------------------------------------------
@@ -269,6 +281,9 @@ void screen_device::device_validity_check(validity_checker &valid) const
osd_printf_error("Screen does not have palette defined\n");
if (m_palette != NULL && texformat == TEXFORMAT_RGB32)
osd_printf_warning("Screen does not need palette defined\n");
+
+// if (m_orientation != (valid.driver()->flags & ORIENTATION_MASK))
+// osd_printf_error("Screen orientation does not match\n");
}