}
// Draw a sunken edge
-void wxEffects::DrawSunkenEdge(wxDC& dc, const wxRect& rect, int borderSize)
+void wxEffects::DrawSunkenEdge(wxDC& dc, const wxRect& rect, int WXUNUSED(borderSize))
{
wxPen highlightPen(m_highlightColour, 1, wxSOLID);
wxPen lightShadowPen(m_lightShadow, 1, wxSOLID);
int w = bitmap.GetWidth();
int h = bitmap.GetHeight();
-
+
wxMemoryDC dcMem;
-
+
+#if wxUSE_PALETTE
if (bitmap.GetPalette() && !hiColour)
{
dc.SetPalette(* bitmap.GetPalette());
dcMem.SetPalette(* bitmap.GetPalette());
}
+#endif // wxUSE_PALETTE
+
dcMem.SelectObject(bitmap);
int i, j;
}
dcMem.SelectObject(wxNullBitmap);
+#if wxUSE_PALETTE
if (bitmap.GetPalette() && !hiColour)
{
dc.SetPalette(wxNullPalette);
dcMem.SetPalette(wxNullPalette);
}
+#endif // wxUSE_PALETTE
return TRUE;
}