total wxBrush cleanup: made private stuff private, fixed data (un)sharing, create HBRUSH on demand only, added asserts/checks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13987 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -137,7 +137,8 @@ private:
|
||||
|
||||
wxColourChanger::wxColourChanger(wxDC& dc) : m_dc(dc)
|
||||
{
|
||||
if ( dc.GetBrush().GetStyle() == wxSTIPPLE_MASK_OPAQUE )
|
||||
const wxBrush& brush = dc.GetBrush();
|
||||
if ( brush.Ok() && brush.GetStyle() == wxSTIPPLE_MASK_OPAQUE )
|
||||
{
|
||||
HDC hdc = GetHdcOf(dc);
|
||||
m_colFgOld = ::GetTextColor(hdc);
|
||||
|
Reference in New Issue
Block a user