From 8e29152d6d3cc5747e6377d50c48b8419c6ef5d7 Mon Sep 17 00:00:00 2001 From: lixiangwuxian Date: Sat, 10 May 2025 14:49:22 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=B0=83=E6=95=B4=20LastDiffToImag?= =?UTF-8?q?e=20=E5=87=BD=E6=95=B0=E4=B8=AD=E7=9A=84=E8=83=8C=E6=99=AF?= =?UTF-8?q?=E5=9B=BE=E5=A4=A7=E5=B0=8F=E5=92=8C=E4=BD=8D=E7=BD=AE=EF=BC=8C?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=BE=B9=E8=B7=9D=E4=BB=A5=E6=94=B9=E5=96=84?= =?UTF-8?q?=E5=9B=BE=E5=83=8F=E5=B8=83=E5=B1=80=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/beatleader/model.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)