diff --git a/hiro/windows/widget/canvas.cpp b/hiro/windows/widget/canvas.cpp index 51138720..3b6ab8ef 100644 --- a/hiro/windows/widget/canvas.cpp +++ b/hiro/windows/widget/canvas.cpp @@ -18,13 +18,13 @@ static auto CALLBACK Canvas_windowProc(HWND hwnd, UINT msg, WPARAM wparam, LPARA } if(msg == WM_ERASEBKGND) { - //background is erased during WM_PAINT to prevent flickering + if(auto self = canvas->self()) self->_paint(); return true; } if(msg == WM_PAINT) { if(auto self = canvas->self()) self->_paint(); - return true; + return false; } if(msg == WM_MOUSEMOVE) {