fixed volume slider

This commit is contained in:
Goatgarien
2022-09-11 01:22:20 -07:00
parent 0c43c85d63
commit f4ef160668
2 changed files with 286 additions and 195 deletions
+285 -194
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -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;
}