fixed volume slider
This commit is contained in:
Generated
+285
-194
File diff suppressed because it is too large
Load Diff
@@ -2055,7 +2055,7 @@ namespace BAKKA_Editor
|
||||
|
||||
private void trackBarVolume_MouseDown(object sender, MouseEventArgs e)
|
||||
{
|
||||
float val = ((float)e.Location.Y / (float)trackBarVolume.Height) *
|
||||
float val = ((float)e.Location.X / (float)trackBarVolume.Width) *
|
||||
(trackBarVolume.Maximum - trackBarVolume.Minimum);
|
||||
trackBarVolume.Value = (int)val;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user