Basic and fun elements conform to new API change
This commit is contained in:
@@ -316,7 +316,7 @@ func (element *Piano) drawFlat (
|
||||
state.Pressed = pressed
|
||||
pattern := element.theme.Theme.Pattern (
|
||||
theme.PatternButton, state, theme.C("fun", "flatKey"))
|
||||
artist.DrawBounds(element.core, pattern, bounds)
|
||||
pattern.Draw(element.core, bounds)
|
||||
}
|
||||
|
||||
func (element *Piano) drawSharp (
|
||||
@@ -327,5 +327,5 @@ func (element *Piano) drawSharp (
|
||||
state.Pressed = pressed
|
||||
pattern := element.theme.Theme.Pattern (
|
||||
theme.PatternButton, state, theme.C("fun", "sharpKey"))
|
||||
artist.DrawBounds(element.core, pattern, bounds)
|
||||
pattern.Draw(element.core, bounds)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user