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()) {