aboutsummaryrefslogtreecommitdiffstats
path: root/ui.go
diff options
context:
space:
mode:
authorsam-anthony <samanthony6@protonmail.com>2022-04-12 18:10:47 -0230
committersam-anthony <samanthony6@protonmail.com>2022-04-12 18:10:47 -0230
commitc177249a57b00950d9351a1901264846bd12e511 (patch)
treeae88b652c4617e31f044d1f0f4dcdaebb7be8953 /ui.go
parent6b8696836d07ee02509a02f56580caeef63b068b (diff)
downloadvolute-c177249a57b00950d9351a1901264846bd12e511.zip
fix bug parsing pressure ratio from toml, remove stale code
Diffstat (limited to 'ui.go')
-rw-r--r--ui.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui.go b/ui.go
index 6926623..88b35b3 100644
--- a/ui.go
+++ b/ui.go
@@ -329,7 +329,7 @@ func updateCompImg() {
min = selectedCompressor.MinY
max = selectedCompressor.MaxY
pr := pressureRatio[i]
- maxPr := selectedCompressor.MaxPressureRatio
+ maxPr := selectedCompressor.MaxPR
y := min - int(float32((min-max))*((pr-1.0)/(maxPr-1.0)))
ps := m.Bounds().Dx() / 100 // Point size