Fix repaint issue when resizing a window in Windows
authorMiikka Heikkinen <miikka.heikkinen@digia.com>
Wed, 12 Sep 2012 10:09:42 +0000 (13:09 +0300)
committerQt by Nokia <qt-info@nokia.com>
Fri, 14 Sep 2012 10:39:30 +0000 (12:39 +0200)
commit1438ad5d3056bca024cc6624f5221b9a9fae6e3b
tree0dd7803233e34e6f4146376875fdfc9d97077194
parent77cd2f6797a4af9aec3c1a7aa5d4a8c751dd08b5
Fix repaint issue when resizing a window in Windows

QWindowsWindow::handleWmPaint() cached the device context it got from
BeginPaint call and used that for the window when the backing store
blitted itself to the window. The problem with this device context is
that the clipping region is set to only encompass the newly exposed
areas, which means any changes caused by the resize on the previously
exposed area were not repainted.

Fixed by removing the DC caching. The benefit was minimal anyway.

Change-Id: I8bd3c4031432ce6b52434c80bfe65d35d9feae49
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
src/plugins/platforms/windows/qwindowswindow.cpp
src/plugins/platforms/windows/qwindowswindow.h