When menus are active, enable mouse on full screen (no whatsnew)

This commit is contained in:
Miodrag Milanovic 2012-08-16 06:13:35 +00:00
parent 85a633f8a5
commit 3b602270ff

View File

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