diff options
author | R. Belmont <rb6502@users.noreply.github.com> | 2019-07-22 23:51:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-22 23:51:01 -0400 |
commit | 675e613c70d02732a47f33e97dfb0697bcb5b266 (patch) | |
tree | 1d3d2fd25d70772e4cdb56908461adf8b7851677 /src/osd | |
parent | 6363a427e1127b8604f11fe709edd4613bfacac7 (diff) | |
parent | 948023c693afc384c04ceaecce9545202a232d7a (diff) |
Merge pull request #5379 from npwoods/draw_video_contents_take_bool
Changing win_window_info::draw_video_contents()'s update parameter to be bool
Diffstat (limited to 'src/osd')
-rw-r--r-- | src/osd/uwp/window.cpp | 4 | ||||
-rw-r--r-- | src/osd/uwp/window.h | 2 | ||||
-rw-r--r-- | src/osd/windows/window.cpp | 6 | ||||
-rw-r--r-- | 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 9643103616c..50660cac32d 100644 --- a/src/osd/windows/window.cpp +++ b/src/osd/windows/window.cpp @@ -1147,7 +1147,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); @@ -1307,7 +1307,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; @@ -1362,7 +1362,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(); |