Fix background drawing in EVT_ERASE_BACKGROUND handler in erase sample.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 21 Jan 2013 16:37:09 +0000 (16:37 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 21 Jan 2013 16:37:09 +0000 (16:37 +0000)
commit99f22294f53e419f6b31abdbb744f6f7a5959e08
treec311c5deea8e31230529592eca245abdede5ef8c
parent22a3b6e4b2010f425a54708e46b1b463bd2817a7
Fix background drawing in EVT_ERASE_BACKGROUND handler in erase sample.

Clear the DC before moving its offset to ensure that it's cleared entirely and
also draw the background using the virtual, not client, size.

See #14917.

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