Skip to content

Commit

Permalink
Bug fix for analog patch visualization crash
Browse files Browse the repository at this point in the history
  • Loading branch information
jmiskovic committed Jul 3, 2019
1 parent f3037bb commit f9f95a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patches/analog/analog.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function patch.load()

local color = self.colorScheme.surfaceC
love.graphics.push()
if touch then
if touch and touch.volume then
color = self.colorScheme.highlight
love.graphics.scale(1 + touch.volume/10)
end
Expand Down

0 comments on commit f9f95a1

Please sign in to comment.