summaryrefslogtreecommitdiffstats
path: root/src/frontend/mame/ui/custui.h
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2021-11-25 01:55:53 +1100
committer Vas Crabb <vas@vastheman.com>2021-11-25 01:55:53 +1100
commitc378ea087097d75cd7f4fb69da062048eaaae5e6 (patch)
tree0711e315d3d2a7fc74cae27f6faea01a6af37f34 /src/frontend/mame/ui/custui.h
parent4e74563abb4c8b385baa72d0c2d5f3987fa88652 (diff)
A little more refactoring, and Coverity fixes:
* emu/ioport.h: Marked PORT_RESET deprecated. * emu/rendlay.cpp: Removed old dot matrix components. * emu/rendlay.cpp: Added warning message for reel components. * Changed a few more fruit machines to eliminate reel components; also made the reel lamps simpler and more efficient in these layouts. * emu, frontend: Fixed various errors reported by Coverity, one of which actaully breaks stuff.
Diffstat (limited to 'src/frontend/mame/ui/custui.h')
-rw-r--r--src/frontend/mame/ui/custui.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/frontend/mame/ui/custui.h b/src/frontend/mame/ui/custui.h
index 34d417c8774..168934b5356 100644
--- a/src/frontend/mame/ui/custui.h
+++ b/src/frontend/mame/ui/custui.h
@@ -28,10 +28,10 @@ class menu_custom_ui : public menu
{
public:
menu_custom_ui(mame_ui_manager &mui, render_container &container, std::function<void ()> &&handler);
- virtual ~menu_custom_ui() override;
protected:
virtual void custom_render(void *selectedref, float top, float bottom, float x, float y, float x2, float y2) override;
+ virtual void menu_dismissed() override;
private:
virtual void populate(float &customtop, float &custombottom) override;
@@ -55,10 +55,10 @@ class menu_font_ui : public menu
{
public:
menu_font_ui(mame_ui_manager &mui, render_container &container, std::function<void (bool)> &&handler);
- virtual ~menu_font_ui() override;
protected:
virtual void custom_render(void *selectedref, float top, float bottom, float x, float y, float x2, float y2) override;
+ virtual void menu_dismissed() override;
private:
virtual void populate(float &customtop, float &custombottom) override;
@@ -89,10 +89,10 @@ class menu_colors_ui : public menu
{
public:
menu_colors_ui(mame_ui_manager &mui, render_container &container);
- virtual ~menu_colors_ui() override;
protected:
virtual void custom_render(void *selectedref, float top, float bottom, float x, float y, float x2, float y2) override;
+ virtual void menu_dismissed() override;
private:
enum
@@ -136,8 +136,7 @@ private:
class menu_rgb_ui : public menu
{
public:
- menu_rgb_ui(mame_ui_manager &mui, render_container &container, rgb_t *_color, std::string _title);
- virtual ~menu_rgb_ui() override;
+ menu_rgb_ui(mame_ui_manager &mui, render_container &container, rgb_t *color, std::string &&title);
protected:
virtual void custom_render(void *selectedref, float top, float bottom, float x, float y, float x2, float y2) override;
@@ -172,7 +171,6 @@ class menu_palette_sel : public menu
{
public:
menu_palette_sel(mame_ui_manager &mui, render_container &container, rgb_t &_color);
- virtual ~menu_palette_sel() override;
private:
virtual void populate(float &customtop, float &custombottom) override;