X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/76c32e7b97bbd5d0c809dd59cba2926be016f7af..9a0c5c012a1137c4c3fb0773df8644553dcc0551:/src/motif/dcclient.cpp diff --git a/src/motif/dcclient.cpp b/src/motif/dcclient.cpp index 2176913c62..23e57a20b5 100644 --- a/src/motif/dcclient.cpp +++ b/src/motif/dcclient.cpp @@ -1736,7 +1736,7 @@ void wxWindowDCImpl::SetPen( const wxPen &pen ) pixel = m_backgroundPixel; else { - pixel = CalculatePixel(m_pen.GetColour(), m_currentColour, false); + pixel = CalculatePixel( (wxColour&) m_pen.GetColour(), m_currentColour, false); } // Finally, set the GC to the required colour @@ -1898,7 +1898,7 @@ void wxWindowDCImpl::SetBrush( const wxBrush &brush ) // must test m_logicalFunction, because it involves background! if (!sameColour || !GET_OPTIMIZATION || m_logicalFunction == wxXOR) { - WXPixel pixel = CalculatePixel(m_brush.GetColour(), m_currentColour, true); + WXPixel pixel = CalculatePixel( (wxColour&) m_brush.GetColour(), m_currentColour, true); if (pixel > -1) SetForegroundPixelWithLogicalFunction(pixel);