// declarations
// ============================================================================
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma implementation "brush.h"
-#endif
-
// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------
}
wxBrushRefData::wxBrushRefData(const wxBrushRefData& data)
- : m_stipple(data.m_stipple),
+ : wxGDIRefData(),
+ m_stipple(data.m_stipple),
m_colour(data.m_colour)
{
m_style = data.m_style;
}
}
-static int TransllateHatchStyle(int style)
-{
#if !defined(__WXMICROWIN__) && !defined(__WXWINCE__)
+
+static int TranslateHatchStyle(int style)
+{
switch ( style )
{
case wxBDIAGONAL_HATCH: return HS_BDIAGONAL;
case wxVERTICAL_HATCH: return HS_VERTICAL;
default: return -1;
}
-#else // __WXMICROWIN__
- return -1;
-#endif
}
+#endif // !__WXMICROWIN__ && !__WXWINCE__
+
HBRUSH wxBrushRefData::GetHBRUSH()
{
if ( !m_hBrush )
{
-#ifndef __WXWINCE__
- int hatchStyle = TransllateHatchStyle(m_style);
+#if !defined(__WXMICROWIN__) && !defined(__WXWINCE__)
+ int hatchStyle = TranslateHatchStyle(m_style);
if ( hatchStyle == -1 )
-#endif
+#endif // !__WXMICROWIN__ && !__WXWINCE__
{
switch ( m_style )
{