Skip to content

Commit

Permalink
public
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiang-Red authored Aug 22, 2024
1 parent cdf4ee0 commit 320312d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions serverpic.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type PluginInfo struct {
}

// RenderServerPic ...
func RenderServerPic(pluginlist []*plugininfo, torussd, glowsd []byte, zbplogopath string, serverlistlogo image.Image) (img image.Image, err error) {
func RenderServerPic(pluginlist []*PluginInfo, torussd, glowsd []byte, zbplogopath string, serverlistlogo image.Image) (img image.Image, err error) {
logo, err := gg.LoadImage(zbplogopath)
if err != nil {
return
Expand Down Expand Up @@ -94,7 +94,7 @@ func RenderServerPic(pluginlist []*plugininfo, torussd, glowsd []byte, zbplogopa
for i := 0; i < 3; i++ {
a := i * cardsnum
b := (i + 1) * cardsnum
go func(i int, list []*plugininfo) {
go func(i int, list []*PluginInfo) {
defer wg.Done()
cardimgs[i], err = renderinfocards(torussd, glowsd, list)
if err != nil {
Expand All @@ -120,7 +120,7 @@ func RenderServerPic(pluginlist []*plugininfo, torussd, glowsd []byte, zbplogopa
return
}

func renderinfocards(torussd, glowsd []byte, plugininfos []*plugininfo) (img image.Image, err error) {
func renderinfocards(torussd, glowsd []byte, plugininfos []*PluginInfo) (img image.Image, err error) {
w := (290+24)*3 + 24
cardnum := len(plugininfos)
h := math.Ceil(cardnum, 3) * (80 + 16)
Expand Down

0 comments on commit 320312d

Please sign in to comment.