From 948023c693afc384c04ceaecce9545202a232d7a Mon Sep 17 00:00:00 2001 From: npwoods Date: Mon, 22 Jul 2019 21:29:10 -0400 Subject: [PATCH] Changing win_window_info::draw_video_contents()'s update parameter to be bool --- src/osd/uwp/window.cpp | 4 ++-- src/osd/uwp/window.h | 2 +- src/osd/windows/window.cpp | 6 +++--- src/osd/windows/window.h | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/osd/uwp/window.cpp b/src/osd/uwp/window.cpp index a2c9ca7f92d..dc03908562f 100644 --- a/src/osd/uwp/window.cpp +++ b/src/osd/uwp/window.cpp @@ -525,7 +525,7 @@ void uwp_window_info::update() // Actually perform the redraw m_primlist = primlist; - draw_video_contents(FALSE); + draw_video_contents(false); } } } @@ -535,7 +535,7 @@ void uwp_window_info::update() // (window thread) //============================================================ -void uwp_window_info::draw_video_contents(int update) +void uwp_window_info::draw_video_contents(bool update) { assert(GetCurrentThreadId() == window_threadid); diff --git a/src/osd/uwp/window.h b/src/osd/uwp/window.h index b36ca4ca694..a5b7ac329b4 100644 --- a/src/osd/uwp/window.h +++ b/src/osd/uwp/window.h @@ -112,7 +112,7 @@ public: private: int complete_create(); - void draw_video_contents(int update); + void draw_video_contents(bool update); void set_starting_view(int index, const char *defview, const char *view); int wnd_extra_width(); int wnd_extra_height(); diff --git a/src/osd/windows/window.cpp b/src/osd/windows/window.cpp index 3066be3d6ec..6c6b26a8357 100644 --- a/src/osd/windows/window.cpp +++ b/src/osd/windows/window.cpp @@ -1150,7 +1150,7 @@ LRESULT CALLBACK win_window_info::video_window_proc(HWND wnd, UINT message, WPAR { PAINTSTRUCT pstruct; HDC hdc = BeginPaint(wnd, &pstruct); - window->draw_video_contents(hdc, TRUE); + window->draw_video_contents(hdc, true); if (window->win_has_menu()) DrawMenuBar(window->platform_window()); EndPaint(wnd, &pstruct); @@ -1315,7 +1315,7 @@ LRESULT CALLBACK win_window_info::video_window_proc(HWND wnd, UINT message, WPAR HDC hdc = GetDC(wnd); window->m_primlist = (render_primitive_list *)lparam; - window->draw_video_contents(hdc, FALSE); + window->draw_video_contents(hdc, false); ReleaseDC(wnd, hdc); break; @@ -1370,7 +1370,7 @@ LRESULT CALLBACK win_window_info::video_window_proc(HWND wnd, UINT message, WPAR // (window thread) //============================================================ -void win_window_info::draw_video_contents(HDC dc, int update) +void win_window_info::draw_video_contents(HDC dc, bool update) { assert(GetCurrentThreadId() == window_threadid); diff --git a/src/osd/windows/window.h b/src/osd/windows/window.h index 3db5177cf6d..278329bb539 100644 --- a/src/osd/windows/window.h +++ b/src/osd/windows/window.h @@ -122,7 +122,7 @@ public: int m_lastclicky; private: - void draw_video_contents(HDC dc, int update); + void draw_video_contents(HDC dc, bool update); int complete_create(); void set_starting_view(int index, const char *defview, const char *view); int wnd_extra_width();