text: public override void setMax(int max){lock (this){base.setMax(max);if ((mKeyProgressIncrement == 0) || (getMax() / mKeyProgressIncrement > 20)){setKeyProgressIncrement(System.Math.Max(1, Sharpen.Util.Round((float)getMax() / 20)));}}}