]> git.saurik.com Git - wxWidgets.git/commit
Don't always override the default background colours.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 8 Sep 2009 12:23:17 +0000 (12:23 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 8 Sep 2009 12:23:17 +0000 (12:23 +0000)
commit52c5093f76e534ec1a39f9f88a9b510b7cf3dbf2
tree838d6c8ee63df514ae9434fc9f9ceb422e086f16
parentddc4214a4f290e2653a49d921945a416a357fcc2
Don't always override the default background colours.

The wxColour argument taken by wxControl::DoMSWControlColor() allows to
override the default colour, it shouldn't be used in MSWControlColor() as this
resulted in always using custom colours for the controls, even when the user
hadn't changed them. Fix this by not passing any valid colour to it in this
case and allowing it to deduce the correct colour to use on its own.

See #1691.

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