From beb403c2d117a03a947cd135cf4f56b9c2eb6b9b Mon Sep 17 00:00:00 2001 From: a Date: Mon, 5 Aug 2024 23:41:04 -0500 Subject: [PATCH] noot --- palette.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/palette.go b/palette.go index 1a837c8..94542da 100644 --- a/palette.go +++ b/palette.go @@ -5,7 +5,6 @@ import ( "fmt" "image/color" "io" - "log" ) type PaletteSection struct { @@ -57,6 +56,8 @@ func (p *PaletteSection) Decode(rd io.Reader) error { alpha, } } + // NOTE: for some reason, the images do not render right if the first pallette colour alpha is not set to 0 + p.setBoard(0, 0, 0) for i := uint32(0); i < p.OpaqueIndexCount; i++ { var first uint32 @@ -68,7 +69,7 @@ func (p *PaletteSection) Decode(rd io.Reader) error { if err := binary.Read(rd, end, &last); err != nil { return err } - log.Println("oic", p.OpaqueIndexCount, i, first, last) + //log.Println("oic", p.OpaqueIndexCount, i, first, last) // TODO: figure out what setBoard actually does //p.setBoard(first, last, 255) }