blob: 814304ec6bd0e3e568e2eb671b458f95dd9ab300 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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__ */
|