diff --git a/icons/ghicons.go b/icons/ghicons.go index 6a79695..acadcc3 100644 --- a/icons/ghicons.go +++ b/icons/ghicons.go @@ -32,7 +32,7 @@ func (generator *GhIconGenerator) GenIcon(id string, size int) *image.NRGBA { for x := 0; x < blocks; x++ { for y := 0; y < blocks; y++ { ni := x + blocks*(blocks-y-1) - if x+blocks*y > 2*blocks { + if x+blocks*y >= 2*blocks { di := (x + blocks*y) - 2*blocks data[di] = nibbles[ni%32]%2 == 0 } diff --git a/testdata/1a79a4d60de6718e8e5b326e338ae533_gh.png b/testdata/1a79a4d60de6718e8e5b326e338ae533_gh.png index f8262c2..d69f302 100644 Binary files a/testdata/1a79a4d60de6718e8e5b326e338ae533_gh.png and b/testdata/1a79a4d60de6718e8e5b326e338ae533_gh.png differ diff --git a/testdata/a1d0c6e83f027327d8461063f4ac58a6_gh.png b/testdata/a1d0c6e83f027327d8461063f4ac58a6_gh.png index beec58e..10004e2 100644 Binary files a/testdata/a1d0c6e83f027327d8461063f4ac58a6_gh.png and b/testdata/a1d0c6e83f027327d8461063f4ac58a6_gh.png differ