Esempio n. 1
0
        private void RecoverOriginState()
        {
            GraphicsSettingData.ApplyPersonalContrastDelta();
            GraphicsSettingData.CopyPersonalContrastDelta(ref this._contrastDelta);
            int showValue = ((int)((((float)(this._contrastShowMaxValue - this._contrastShowMinValue)) / 2f) * (this._contrastDelta + 1f))) + this._contrastShowMinValue;

            this._contrastSlider.value = showValue;
            this.ShowContrast(showValue);
        }