Erase the entire virtual area of the window in the erase sample.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 10 Feb 2013 16:13:53 +0000 (16:13 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 10 Feb 2013 16:13:53 +0000 (16:13 +0000)
commit963f64fb949652fb0de2522d7422a412c102dab8
treec0af6315a25216bfd2bd483a512ece90c0ece1f5
parentd7763d16d749d7de79f5c7256433298d6cb29ce4
Erase the entire virtual area of the window in the erase sample.

Just clearing the DC is not enough when the window is scrolled, so clear the
entire virtual area. We should be able to optimize it by clearing just the
rectangle currently scrolled into view but this is at least correct, i.e.
doesn't result in corrupted display, even if it's suboptimal.

See #14917.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
samples/erase/erase.cpp