mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 03:33:18 +01:00
Fix for inconsistency in change brightness - thx nautilus7 :)
Fix #7261
This commit is contained in:
parent
c0a6626181
commit
fa7c4199c9
@ -80,10 +80,10 @@ namespace Nikse.SubtitleEdit.Forms.BinaryEdit
|
||||
private void numericUpDownBrightness_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
Factor = numericUpDownBrightness.Value / 100.0m;
|
||||
UpdatePreview();
|
||||
trackBarBrightness.Scroll -= trackBarBrightness_Scroll;
|
||||
trackBarBrightness.Value = (int)Math.Round(numericUpDownBrightness.Value, MidpointRounding.AwayFromZero);
|
||||
trackBarBrightness.Scroll += trackBarBrightness_Scroll;
|
||||
UpdatePreview();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user