]> git.saurik.com Git - wxWidgets.git/commit - src/msw/dcclient.cpp
Cache HDC used for painting for the entire duration of WM_PAINT processing.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 10 Nov 2012 00:52:54 +0000 (00:52 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 10 Nov 2012 00:52:54 +0000 (00:52 +0000)
commitddc8faa9e1f9d7dc99ef11e2294ad33915092024
tree57b55f5dd0e3afa32bc44674d3ddfddf108a5219
parent80791c37b5d73e38ff1e77d9c42be6f4f55dc196
Cache HDC used for painting for the entire duration of WM_PAINT processing.

This fixes a long standing problem with 2 wxPaintDC created one after another
(and not with nested lifetimes, which was handled by the caching mechanism
previously used) not working correctly. And as this was exactly what happened
when handling wxEVT_PAINT for wxScrolled, it also fixes drawing artefacts when
using scrolled windows.

Closes #14757.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/msw/dcclient.h
src/msw/dcclient.cpp
src/msw/window.cpp