X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/46562151eb21235344768ea4b53c204d0c03fcee..fe02c2c2dd5db8ad75ff5c6d37396dee8bb608f3:/src/mgl/brush.cpp?ds=sidebyside diff --git a/src/mgl/brush.cpp b/src/mgl/brush.cpp index 26ea8e74f6..039d7ef4f5 100644 --- a/src/mgl/brush.cpp +++ b/src/mgl/brush.cpp @@ -59,7 +59,7 @@ void wxBitmapToPixPattern(const wxBitmap& bitmap, mask->p[y] = 0; for (x = 0; x < 8; x++) if ( dc->getPixelFast(x, y) != 0 ) - mask->p[y] |= 1 << (7 - x); + mask->p[y] = (uchar)(mask->p[y] | (1 << (7 - x))); } dc->endPixel(); } @@ -143,18 +143,6 @@ wxBrush::wxBrush(const wxBitmap &stippleBitmap) M_BRUSHDATA->m_style = wxSTIPPLE; } -wxBrush::wxBrush(const wxBrush &brush) -{ - Ref(brush); -} - -wxBrush& wxBrush::operator = (const wxBrush& brush) -{ - if (*this == brush) return (*this); - Ref(brush); - return *this; -} - bool wxBrush::operator == (const wxBrush& brush) const { return m_refData == brush.m_refData; @@ -223,7 +211,7 @@ void wxBrush::SetColour(const wxColour& col) M_BRUSHDATA->m_colour = col; } -void wxBrush::SetColour(const unsigned char r, const unsigned char g, const unsigned char b) +void wxBrush::SetColour(unsigned char r, unsigned char g, unsigned char b) { AllocExclusive(); M_BRUSHDATA->m_colour.Set(r, g, b);