599
599
// Construct a series of brushes where each one's dimensions are
600
600
// half the size of the previous one.
602
602
// will not get scaled up anymore or the memory consumption gets too high
603
603
// also don't scale the brush up more then MAXIMUM_MIPMAP_SCALE times
604
604
int scale = qBound(1, MAXIMUM_MIPMAP_SIZE*2 / qMax(image().width(),image().height()), MAXIMUM_MIPMAP_SCALE);