summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2023-05-23 19:18:41 -0400
committer AJR <ajrhacker@users.noreply.github.com>2023-05-23 19:19:36 -0400
commit05d46a74aafee4badb1ede54f1741329acdf5bdd (patch)
tree9c60407e9737a3fab2ac6b83ec98c34a65a58279 /src/osd
parent92ba1a5b60dd0809f1a1897e90043ad5c28d1f1f (diff)
osd/mac, osd/sdl: Really inhibit full screen toggle in debug mode to prevent accidental crashes
Diffstat (limited to 'src/osd')
-rw-r--r--src/osd/mac/video.cpp4
-rw-r--r--src/osd/sdl/osdsdl.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/osd/mac/video.cpp b/src/osd/mac/video.cpp
index e5feba57f76..1dab5f5782e 100644
--- a/src/osd/mac/video.cpp
+++ b/src/osd/mac/video.cpp
@@ -136,8 +136,8 @@ void mac_osd_interface::input_update(bool relative_reset)
void mac_osd_interface::check_osd_inputs()
{
- // check for toggling fullscreen mode
- if (machine().ui_input().pressed(IPT_OSD_1))
+ // check for toggling fullscreen mode (don't do this in debug mode)
+ if (machine().ui_input().pressed(IPT_OSD_1) && !(machine().debug_flags & DEBUG_FLAG_OSD_ENABLED))
{
// destroy the renderers first so that the render module can bounce if it depends on having a window handle
for (auto it = window_list().rbegin(); window_list().rend() != it; ++it)
diff --git a/src/osd/sdl/osdsdl.cpp b/src/osd/sdl/osdsdl.cpp
index e02232ece1f..905096c05d8 100644
--- a/src/osd/sdl/osdsdl.cpp
+++ b/src/osd/sdl/osdsdl.cpp
@@ -695,8 +695,8 @@ void sdl_osd_interface::process_textinput_event(SDL_Event const &event)
void sdl_osd_interface::check_osd_inputs()
{
- // check for toggling fullscreen mode
- if (machine().ui_input().pressed(IPT_OSD_1))
+ // check for toggling fullscreen mode (don't do this in debug mode)
+ if (machine().ui_input().pressed(IPT_OSD_1) && !(machine().debug_flags & DEBUG_FLAG_OSD_ENABLED))
{
// destroy the renderers first so that the render module can bounce if it depends on having a window handle
for (auto it = osd_common_t::window_list().rbegin(); osd_common_t::window_list().rend() != it; ++it)