summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd
diff options
context:
space:
mode:
authorGravatarGravatar R. Belmont <rb6502@users.noreply.github.com>2019-07-22 23:51:16 -0400
committerGravatarGravatar GitHub <noreply@github.com>2019-07-22 23:51:16 -0400
commit03dbd1ad3f359dfe9864ee031390c6fef089466e (patch)
treefe71cbeb0bc9ad572c3d44f43a51648fdf7a4b37 /src/osd
parent675e613c70d02732a47f33e97dfb0697bcb5b266 (diff)
parenta9a2ce73c1c35d145265a93e7ace349672049a81 (diff)
Merge pull request #5380 from npwoods/winwindow_has_focus_return_bool
Changed winwindow_has_focus() to return bool
Diffstat (limited to 'src/osd')
-rw-r--r--src/osd/uwp/window.cpp4
-rw-r--r--src/osd/uwp/window.h2
-rw-r--r--src/osd/windows/window.cpp6
-rw-r--r--src/osd/windows/window.h2
4 files changed, 7 insertions, 7 deletions
diff --git a/src/osd/uwp/window.cpp b/src/osd/uwp/window.cpp
index dc03908562f..12c67308f22 100644
--- a/src/osd/uwp/window.cpp
+++ b/src/osd/uwp/window.cpp
@@ -319,10 +319,10 @@ void winwindow_process_events_periodic(running_machine &machine)
// (main or window thread)
//============================================================
-BOOL winwindow_has_focus(void)
+bool winwindow_has_focus(void)
{
// For now always act like we have focus
- return TRUE;
+ return true;
}
//============================================================
diff --git a/src/osd/uwp/window.h b/src/osd/uwp/window.h
index a5b7ac329b4..21948028343 100644
--- a/src/osd/uwp/window.h
+++ b/src/osd/uwp/window.h
@@ -144,7 +144,7 @@ struct osd_draw_callbacks
// 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_periodic(running_machine &machine);
diff --git a/src/osd/windows/window.cpp b/src/osd/windows/window.cpp
index 50660cac32d..7b574d121cf 100644
--- a/src/osd/windows/window.cpp
+++ b/src/osd/windows/window.cpp
@@ -658,16 +658,16 @@ void winwindow_toggle_full_screen(void)
// (main or window thread)
//============================================================
-BOOL winwindow_has_focus(void)
+bool winwindow_has_focus(void)
{
HWND focuswnd = GetFocus();
// see if one of the video windows has focus
for (auto window : osd_common_t::s_window_list)
if (focuswnd == std::static_pointer_cast<win_window_info>(window)->platform_window())
- return TRUE;
+ return true;
- return FALSE;
+ return false;
}
diff --git a/src/osd/windows/window.h b/src/osd/windows/window.h
index 278329bb539..7d82888bc47 100644
--- a/src/osd/windows/window.h
+++ b/src/osd/windows/window.h
@@ -157,7 +157,7 @@ struct osd_draw_callbacks
// PROTOTYPES
//============================================================
-BOOL winwindow_has_focus(void);
+bool winwindow_has_focus(void);
void winwindow_update_cursor_state(running_machine &machine);
extern LRESULT CALLBACK winwindow_video_window_proc_ui(HWND wnd, UINT message, WPARAM wparam, LPARAM lparam);