Merge pull request #1242 from manongjohn/fix_raster_filldepth_slider

Invert raster fill depth value calculation
This commit is contained in:
manongjohn 2023-10-15 21:42:06 -04:00 committed by GitHub
commit 01f55cb6d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1047,7 +1047,7 @@ void fullColorFill(const TRaster32P &ras, const FillParameters &params,
TPointD m_firstPoint, m_clickPoint;
// convert fillDepth range from [0 - 15] to [0 - 255]
fillDepth = (fillDepth << 4) | fillDepth;
fillDepth = ((15 - fillDepth) << 4) | (15 - fillDepth);
std::stack<FillSeed> seeds;
std::map<int, std::vector<std::pair<int, int>>> segments;