mirror of
https://github.com/holub/mame
synced 2025-04-24 09:20:02 +03:00
Attempt to fix mouse state on startup in SDL builds by initialising members
This commit is contained in:
parent
23a2315f40
commit
a2b99f8149
@ -1104,14 +1104,25 @@ osd_dim sdl_window_info::get_max_bounds(int constrain)
|
||||
// construction and destruction
|
||||
//============================================================
|
||||
|
||||
sdl_window_info::sdl_window_info(running_machine &a_machine, int index, std::shared_ptr<osd_monitor_info> a_monitor,
|
||||
sdl_window_info::sdl_window_info(
|
||||
running_machine &a_machine,
|
||||
int index,
|
||||
std::shared_ptr<osd_monitor_info> a_monitor,
|
||||
const osd_window_config *config)
|
||||
: osd_window(*config), m_next(nullptr), m_startmaximized(0),
|
||||
: osd_window(*config)
|
||||
, m_next(nullptr)
|
||||
, m_startmaximized(0)
|
||||
// Following three are used by input code to defer resizes
|
||||
m_minimum_dim(0,0),
|
||||
m_windowed_dim(0,0),
|
||||
m_rendered_event(0, 1), m_target(nullptr), m_extra_flags(0),
|
||||
m_machine(a_machine), m_monitor(a_monitor), m_fullscreen(0)
|
||||
, m_minimum_dim(0, 0)
|
||||
, m_windowed_dim(0, 0)
|
||||
, m_rendered_event(0, 1)
|
||||
, m_target(nullptr)
|
||||
, m_extra_flags(0)
|
||||
, m_machine(a_machine)
|
||||
, m_monitor(a_monitor)
|
||||
, m_fullscreen(0)
|
||||
, m_mouse_captured(false)
|
||||
, m_mouse_hidden(false)
|
||||
{
|
||||
m_index = index;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user