OverlayWndProc: Fix flickering issue
The flickering was caused by DefWindowProc trying to erase the background, then GDI painting back in the bitmap. By not letting DefWindowProc draw the background, flickering is effectively removed. git-svn-id: svn://vcs.sdm.2ki.xyz/Grabby/trunk@15 27729192-006e-004d-b9b5-06fbd0ef7001
This commit is contained in:
parent
94989c680a
commit
be95698d10
|
@ -179,6 +179,9 @@ OverlayWndProc(HWND hWnd,
|
||||||
|
|
||||||
EndPaint(hWnd, &ps);
|
EndPaint(hWnd, &ps);
|
||||||
break;
|
break;
|
||||||
|
case WM_ERASEBKGND:
|
||||||
|
// Do nothing
|
||||||
|
return 1;
|
||||||
case WM_MOUSEMOVE:
|
case WM_MOUSEMOVE:
|
||||||
if (isDrag && (wParam & MK_LBUTTON)) {
|
if (isDrag && (wParam & MK_LBUTTON)) {
|
||||||
POINTS ptPrev = ptCur;
|
POINTS ptPrev = ptCur;
|
||||||
|
|
Loading…
Reference in a new issue