From 3b602270ffb6576f6ade3c59262acb5f48bb736b Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Thu, 16 Aug 2012 06:13:35 +0000 Subject: [PATCH] When menus are active, enable mouse on full screen (no whatsnew) --- src/emu/render.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/emu/render.c b/src/emu/render.c index 4bed4aed1bc..ab7286bb63d 100644 --- a/src/emu/render.c +++ b/src/emu/render.c @@ -74,6 +74,7 @@ #include "config.h" #include "drivenum.h" #include "xmlfile.h" +#include "ui.h" @@ -1938,7 +1939,11 @@ bool render_target::map_point_internal(INT32 target_x, INT32 target_y, render_co // convert target coordinates to float float target_fx = (float)(target_x - root_xform.xoffs) / viswidth; float target_fy = (float)(target_y - root_xform.yoffs) / visheight; - + if (ui_is_menu_active()) + { + target_fx = (float)target_x / m_width; + target_fy = (float)target_y / m_height; + } // explicitly check for the UI container if (container != NULL && container == &m_manager.ui_container()) {