diff --git a/service/beatleader/model.go b/service/beatleader/model.go index 99aef2a..beb5e45 100644 --- a/service/beatleader/model.go +++ b/service/beatleader/model.go @@ -622,13 +622,13 @@ func (p PlayerDataLite) LastDiffToImage(lastDayQueryData PlayerDataLite) string totalWidth := maxX - minX totalHeight := maxY - minY - background := image.NewRGBA(image.Rect(0, 0, int(totalWidth), int(totalHeight))) + background := image.NewRGBA(image.Rect(0, 0, int(totalWidth+10), int(totalHeight+10))) draw.Draw(background, background.Bounds(), image.White, image.Point{}, draw.Src) backgroundSpirit := sprite.Sprite{ Name: "background", Image: background, Index: 0, - Position: image.Point{X: minX, Y: minY}, + Position: image.Point{X: minX - 5, Y: minY - 5}, } baseboard.AddSprite(&backgroundSpirit)