Merge pull request #5379 from npwoods/draw_video_contents_take_bool

Changing win_window_info::draw_video_contents()'s update parameter to be bool
This commit is contained in:
R. Belmont 2019-07-22 23:51:01 -04:00 committed by GitHub
commit 675e613c70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View File

@ -525,7 +525,7 @@ void uwp_window_info::update()
// Actually perform the redraw // Actually perform the redraw
m_primlist = primlist; m_primlist = primlist;
draw_video_contents(FALSE); draw_video_contents(false);
} }
} }
} }
@ -535,7 +535,7 @@ void uwp_window_info::update()
// (window thread) // (window thread)
//============================================================ //============================================================
void uwp_window_info::draw_video_contents(int update) void uwp_window_info::draw_video_contents(bool update)
{ {
assert(GetCurrentThreadId() == window_threadid); assert(GetCurrentThreadId() == window_threadid);

View File

@ -112,7 +112,7 @@ public:
private: private:
int complete_create(); 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); void set_starting_view(int index, const char *defview, const char *view);
int wnd_extra_width(); int wnd_extra_width();
int wnd_extra_height(); int wnd_extra_height();

View File

@ -1147,7 +1147,7 @@ LRESULT CALLBACK win_window_info::video_window_proc(HWND wnd, UINT message, WPAR
{ {
PAINTSTRUCT pstruct; PAINTSTRUCT pstruct;
HDC hdc = BeginPaint(wnd, &pstruct); HDC hdc = BeginPaint(wnd, &pstruct);
window->draw_video_contents(hdc, TRUE); window->draw_video_contents(hdc, true);
if (window->win_has_menu()) if (window->win_has_menu())
DrawMenuBar(window->platform_window()); DrawMenuBar(window->platform_window());
EndPaint(wnd, &pstruct); EndPaint(wnd, &pstruct);
@ -1307,7 +1307,7 @@ LRESULT CALLBACK win_window_info::video_window_proc(HWND wnd, UINT message, WPAR
HDC hdc = GetDC(wnd); HDC hdc = GetDC(wnd);
window->m_primlist = (render_primitive_list *)lparam; window->m_primlist = (render_primitive_list *)lparam;
window->draw_video_contents(hdc, FALSE); window->draw_video_contents(hdc, false);
ReleaseDC(wnd, hdc); ReleaseDC(wnd, hdc);
break; break;
@ -1362,7 +1362,7 @@ LRESULT CALLBACK win_window_info::video_window_proc(HWND wnd, UINT message, WPAR
// (window thread) // (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); assert(GetCurrentThreadId() == window_threadid);

View File

@ -122,7 +122,7 @@ public:
int m_lastclicky; int m_lastclicky;
private: private:
void draw_video_contents(HDC dc, int update); void draw_video_contents(HDC dc, bool update);
int complete_create(); int complete_create();
void set_starting_view(int index, const char *defview, const char *view); void set_starting_view(int index, const char *defview, const char *view);
int wnd_extra_width(); int wnd_extra_width();