mirror of
https://github.com/holub/mame
synced 2025-10-05 00:38:58 +03:00
Changed winwindow_has_focus() to return bool
This commit is contained in:
parent
9902b997cc
commit
a9a2ce73c1
@ -319,10 +319,10 @@ void winwindow_process_events_periodic(running_machine &machine)
|
|||||||
// (main or window thread)
|
// (main or window thread)
|
||||||
//============================================================
|
//============================================================
|
||||||
|
|
||||||
BOOL winwindow_has_focus(void)
|
bool winwindow_has_focus(void)
|
||||||
{
|
{
|
||||||
// For now always act like we have focus
|
// For now always act like we have focus
|
||||||
return TRUE;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
//============================================================
|
//============================================================
|
||||||
|
@ -144,7 +144,7 @@ struct osd_draw_callbacks
|
|||||||
// PROTOTYPES
|
// PROTOTYPES
|
||||||
//============================================================
|
//============================================================
|
||||||
|
|
||||||
BOOL winwindow_has_focus(void);
|
bool winwindow_has_focus(void);
|
||||||
void winwindow_process_events(running_machine &machine, bool ingame, bool nodispatch);
|
void winwindow_process_events(running_machine &machine, bool ingame, bool nodispatch);
|
||||||
void winwindow_process_events_periodic(running_machine &machine);
|
void winwindow_process_events_periodic(running_machine &machine);
|
||||||
|
|
||||||
|
@ -661,16 +661,16 @@ void winwindow_toggle_full_screen(void)
|
|||||||
// (main or window thread)
|
// (main or window thread)
|
||||||
//============================================================
|
//============================================================
|
||||||
|
|
||||||
BOOL winwindow_has_focus(void)
|
bool winwindow_has_focus(void)
|
||||||
{
|
{
|
||||||
HWND focuswnd = GetFocus();
|
HWND focuswnd = GetFocus();
|
||||||
|
|
||||||
// see if one of the video windows has focus
|
// see if one of the video windows has focus
|
||||||
for (auto window : osd_common_t::s_window_list)
|
for (auto window : osd_common_t::s_window_list)
|
||||||
if (focuswnd == std::static_pointer_cast<win_window_info>(window)->platform_window())
|
if (focuswnd == std::static_pointer_cast<win_window_info>(window)->platform_window())
|
||||||
return TRUE;
|
return true;
|
||||||
|
|
||||||
return FALSE;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -157,7 +157,7 @@ struct osd_draw_callbacks
|
|||||||
// PROTOTYPES
|
// PROTOTYPES
|
||||||
//============================================================
|
//============================================================
|
||||||
|
|
||||||
BOOL winwindow_has_focus(void);
|
bool winwindow_has_focus(void);
|
||||||
void winwindow_update_cursor_state(running_machine &machine);
|
void winwindow_update_cursor_state(running_machine &machine);
|
||||||
|
|
||||||
extern LRESULT CALLBACK winwindow_video_window_proc_ui(HWND wnd, UINT message, WPARAM wparam, LPARAM lparam);
|
extern LRESULT CALLBACK winwindow_video_window_proc_ui(HWND wnd, UINT message, WPARAM wparam, LPARAM lparam);
|
||||||
|
Loading…
Reference in New Issue
Block a user