mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
about: remove auto pause (nw)
reason: inconsistent with other Tab menu entries including the fullscreen popup for selecting new machine, and also a bug where it refuses to unpause when closing About popup with Tab.
This commit is contained in:
parent
a8c0abadea
commit
9f2a29e08e
@ -27,7 +27,7 @@ namespace {
|
||||
|
||||
ABOUT MODAL
|
||||
|
||||
**************************************************/
|
||||
**************************************************/
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
@ -36,8 +36,6 @@ namespace {
|
||||
|
||||
menu_about::menu_about(mame_ui_manager &mui, render_container &container)
|
||||
: menu(mui, container)
|
||||
, m_pause_checked(false)
|
||||
, m_was_paused(false)
|
||||
{
|
||||
}
|
||||
|
||||
@ -48,28 +46,15 @@ menu_about::menu_about(mame_ui_manager &mui, render_container &container)
|
||||
|
||||
menu_about::~menu_about()
|
||||
{
|
||||
// resume if appropriate (is the destructor really the right place
|
||||
// to do this sort of activity?)
|
||||
// TODO(mooglyguy): No, it isn't. We should have an explicit menu-exit callback.
|
||||
if (!m_was_paused)
|
||||
machine().resume();
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// populate - populates the about modal
|
||||
//-------------------------------------------------
|
||||
|
||||
void menu_about::populate(float &customtop, float &custombottom)
|
||||
{
|
||||
// pause if appropriate
|
||||
if (!m_pause_checked)
|
||||
{
|
||||
m_was_paused = machine().paused();
|
||||
if (!m_was_paused)
|
||||
machine().pause();
|
||||
m_pause_checked = true;
|
||||
}
|
||||
|
||||
for (char const *const *line = copying_text; *line; ++line)
|
||||
item_append(*line, "", 0, nullptr);
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
// copyright-holders:Ryan Holtz
|
||||
/***************************************************************************
|
||||
|
||||
ui/barcode.h
|
||||
ui/about.h
|
||||
|
||||
"About" modal
|
||||
|
||||
@ -27,9 +27,6 @@ public:
|
||||
private:
|
||||
virtual void populate(float &customtop, float &custombottom) override;
|
||||
virtual void handle() override;
|
||||
|
||||
bool m_pause_checked;
|
||||
bool m_was_paused;
|
||||
};
|
||||
|
||||
} // namespace ui
|
||||
|
@ -282,4 +282,4 @@ ROM_END
|
||||
******************************************************************************/
|
||||
|
||||
// YEAR NAME PARENT CMP MACHINE INPUT STATE INIT COMPANY, FULLNAME, FLAGS
|
||||
CONS( 1980, cncchess2, 0, 0, cncchess2, cncchess2, cchess2_state, empty_init, "Conic", "Computer Chess (Conic, model 7012)", MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK )
|
||||
CONS( 1980, cncchess2, 0, 0, cncchess2, cncchess2, cchess2_state, empty_init, "Conic", "Computer Chess (Conic, model 7012)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK )
|
||||
|
Loading…
Reference in New Issue
Block a user