X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/85f6b408dfd796805b1c43718e69549506353ca7..aa96f01c02ca602769785fa4bad0dd69ae6cad05:/src/common/rgncmn.cpp diff --git a/src/common/rgncmn.cpp b/src/common/rgncmn.cpp index 2b1b5b6600..801aaa9e3f 100644 --- a/src/common/rgncmn.cpp +++ b/src/common/rgncmn.cpp @@ -60,9 +60,9 @@ static bool DoRegionUnion(wxRegion& region, { unsigned char hiR, hiG, hiB; - hiR = wxMin(0xFF, loR + tolerance); - hiG = wxMin(0xFF, loG + tolerance); - hiB = wxMin(0xFF, loB + tolerance); + hiR = (unsigned char)wxMin(0xFF, loR + tolerance); + hiG = (unsigned char)wxMin(0xFF, loG + tolerance); + hiB = (unsigned char)wxMin(0xFF, loB + tolerance); // Loop through the image row by row, pixel by pixel, building up // rectangles to add to the region. @@ -101,7 +101,7 @@ static bool DoRegionUnion(wxRegion& region, return true; } - + bool wxRegion::Union(const wxBitmap& bmp) {