mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-18 02:16:23 -05:00
fix(run/walk): changes invalid surface for toggled state (#816)
This commit is contained in:
parent
2b469d302b
commit
8e957c17fe
@ -380,7 +380,7 @@ func (v *Button) renderFrames(btnSprite *Sprite, btnLayout *ButtonLayout, label
|
||||
log.Print(err)
|
||||
}
|
||||
|
||||
err = btnSprite.RenderSegmented(v.pressedSurface, xSeg, ySeg, baseFrame+frameOffset)
|
||||
err = btnSprite.RenderSegmented(v.toggledSurface, xSeg, ySeg, baseFrame+frameOffset)
|
||||
if err != nil {
|
||||
fmt.Printf("failed to render button toggledSurface, err: %v\n", err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user