Fix issue in gh icons with missing first nibble

This commit is contained in:
Paul-Christian Volkmer 2024-05-05 19:42:36 +02:00
parent 98d85ed9ae
commit 79fc47068b
3 changed files with 1 additions and 1 deletions

View File

@ -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
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 242 B

After

Width:  |  Height:  |  Size: 256 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 266 B

After

Width:  |  Height:  |  Size: 268 B