Skip to content

Commit

Permalink
Don't let upper graph lines go below the declared minimum
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Jun 1, 2020
1 parent 95050bd commit 66119c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Themes/Til Death/BGAnimations/_calcdisplay.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ end

-- scale values to vertical positions within the top graph
local function fitY1(y) -- scale for upper graph
if y < upperGraphMin then y = upperGraphMin end
local num = scale(y, upperGraphMin, upperGraphMax, 0, 1)
local out = -1 * num * plotHeight
return out
Expand Down

0 comments on commit 66119c5

Please sign in to comment.