More flicker work and TODOs.
This commit is contained in:
parent
7f56079257
commit
f35d68907b
|
@ -65,6 +65,7 @@ static HBRUSH getControlBackgroundBrush(HWND hwnd, HDC dc, RECT *hwndScreenRect)
|
||||||
return brush;
|
return brush;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO this doesn't work right for partial redraws
|
||||||
static void paintContainerBackground(HWND hwnd, HDC dc, RECT *paintRect)
|
static void paintContainerBackground(HWND hwnd, HDC dc, RECT *paintRect)
|
||||||
{
|
{
|
||||||
RECT screenRect;
|
RECT screenRect;
|
||||||
|
@ -208,6 +209,10 @@ static LRESULT CALLBACK containerWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LP
|
||||||
logLastError("error getting client rect in containerWndProc()");
|
logLastError("error getting client rect in containerWndProc()");
|
||||||
paintContainerBackground(c->hwnd, (HDC) wParam, &r);
|
paintContainerBackground(c->hwnd, (HDC) wParam, &r);
|
||||||
return 0;
|
return 0;
|
||||||
|
case WM_ERASEBKGND:
|
||||||
|
// avoid some flicker
|
||||||
|
// we draw the whole update area anyway
|
||||||
|
return 1;
|
||||||
case WM_WINDOWPOSCHANGED:
|
case WM_WINDOWPOSCHANGED:
|
||||||
if ((wp->flags & SWP_NOSIZE) != 0)
|
if ((wp->flags & SWP_NOSIZE) != 0)
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue