Mercurial > projects > dwt-win
changeset 219:9c2ceaa48046
Fix drawing bug for double buffered Tree.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 18 May 2008 19:57:42 +0200 |
parents | c749c13479ef |
children | f54496748313 |
files | dwt/widgets/Tree.d |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/dwt/widgets/Tree.d Sun May 18 19:57:18 2008 +0200 +++ b/dwt/widgets/Tree.d Sun May 18 19:57:42 2008 +0200 @@ -6727,7 +6727,7 @@ OS.SetWindowOrgEx (hDC, ps.rcPaint.left, ps.rcPaint.top, &lpPoint1); OS.SetBrushOrgEx (hDC, ps.rcPaint.left, ps.rcPaint.top, &lpPoint2); auto hBitmap = OS.CreateCompatibleBitmap (paintDC, width, height); - auto hOldBitmap = OS.SelectObject (hDC, &hBitmap); + auto hOldBitmap = OS.SelectObject (hDC, hBitmap); RECT rect; OS.SetRect (&rect, ps.rcPaint.left, ps.rcPaint.top, ps.rcPaint.right, ps.rcPaint.bottom); drawBackground (hDC, &rect);