Skip to content

Commit

Permalink
Update window size immediately when backdrop changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JiepengTan committed May 27, 2024
1 parent c81bc8f commit ef742b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion game.go
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,8 @@ func (p *Game) BackdropIndex() int {
// StartBackdrop(spx.Prev)
func (p *Game) StartBackdrop(backdrop interface{}, wait ...bool) {
if p.goSetCostume(backdrop) {
p.windowWidth_ = 0 // TODO: need review
p.windowWidth_ = 0
p.doWindowSize()
p.doWhenBackdropChanged(p.getCostumeName(), wait != nil && wait[0])
}
}
Expand Down

0 comments on commit ef742b8

Please sign in to comment.