mirror of
https://github.com/holub/mame
synced 2025-04-26 10:13:37 +03:00
When menus are active, enable mouse on full screen (no whatsnew)
This commit is contained in:
parent
85a633f8a5
commit
3b602270ff
@ -74,6 +74,7 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "drivenum.h"
|
#include "drivenum.h"
|
||||||
#include "xmlfile.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
|
// convert target coordinates to float
|
||||||
float target_fx = (float)(target_x - root_xform.xoffs) / viswidth;
|
float target_fx = (float)(target_x - root_xform.xoffs) / viswidth;
|
||||||
float target_fy = (float)(target_y - root_xform.yoffs) / visheight;
|
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
|
// explicitly check for the UI container
|
||||||
if (container != NULL && container == &m_manager.ui_container())
|
if (container != NULL && container == &m_manager.ui_container())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user