Don't change the current pen and brush in DrawHeaderButtonContents().
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 15 May 2010 11:15:05 +0000 (11:15 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 15 May 2010 11:15:05 +0000 (11:15 +0000)
commit78010a1f33c78f9ec6f17b2774a25ad71c5930fd
tree0d6ee4438d4e951f7f4a96da73a9774bdf7bba90
parent945178c70e2eba1d39ff8382b43825370b7ad894
Don't change the current pen and brush in DrawHeaderButtonContents().

Renderer methods shouldn't affect the functions drawing on the DC after it but
the wxRendererGeneric implementation did.

Use wxDC{Pen,Brush}Changer classes instead of calling wxDC::Set{Pen,Brush}()
directly.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/generic/renderg.cpp