summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/ui/dsplmenu.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/ui/dsplmenu.h')
-rw-r--r--src/emu/ui/dsplmenu.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/emu/ui/dsplmenu.h b/src/emu/ui/dsplmenu.h
new file mode 100644
index 00000000000..814304ec6bd
--- /dev/null
+++ b/src/emu/ui/dsplmenu.h
@@ -0,0 +1,44 @@
+// license:BSD-3-Clause
+// copyright-holders:Dankan1890
+/***************************************************************************
+
+ ui/dsplmenu.h
+
+ UI video options menu.
+
+***************************************************************************/
+
+#pragma once
+
+#ifndef __UI_DSPLMENU_H__
+#define __UI_DSPLMENU_H__
+
+//-------------------------------------------------
+// class display options menu
+//-------------------------------------------------
+class ui_menu_display_options : public ui_menu
+{
+public:
+ ui_menu_display_options(running_machine &machine, render_container *container);
+ virtual ~ui_menu_display_options();
+ virtual void populate() override;
+ virtual void handle() override;
+ virtual void custom_render(void *selectedref, float top, float bottom, float x, float y, float x2, float y2) override;
+
+private:
+ struct dspl_option
+ {
+ UINT16 status;
+ const char *description;
+ const char *option;
+ };
+
+ using video_modes = std::unordered_map<std::string, std::string>;
+
+ static video_modes m_video;
+ static dspl_option m_options[];
+
+ std::vector<std::string> m_list;
+};
+
+#endif /* __UI_DSPLMENU_H__ */