works as intended

This commit is contained in:
potassium 2025-01-26 05:38:11 +03:00
parent da7aa9a43b
commit 22d9315fc6

View File

@ -43,12 +43,13 @@ func Draw(img image.Image) error {
for w := 0; w < Width; w++ { for w := 0; w < Width; w++ {
_, err := buf.Write(Bytes(img.At(w, h))) _, err := buf.Write(Bytes(img.At(w, h)))
if err != nil { if err != nil {
panic(err) return err
} }
} }
} }
err := buf.Flush() err := buf.Flush()
if err != nil { if err != nil {
panic(err) return err
} }
return nil
} }