diff options
author | 2016-02-21 11:48:45 +0100 | |
---|---|---|
committer | 2016-02-21 11:48:45 +0100 | |
commit | cc24a339d8c0517259084b5c178d784626ba965c (patch) | |
tree | 9868e9687b5802ae0a3733712a3bbeb3bc75c953 /src/emu/ui/dsplmenu.h | |
parent | b5daabda5495dea5c50e17961ecfed2ea8619d76 (diff) |
Merge remote-tracking branch 'refs/remotes/mamedev/master'
Second attempt
Diffstat (limited to 'src/emu/ui/dsplmenu.h')
-rw-r--r-- | src/emu/ui/dsplmenu.h | 44 |
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__ */ |