This commit is contained in:
a 2024-08-05 23:41:04 -05:00
parent c04079691b
commit beb403c2d1
Signed by: a
GPG Key ID: 374BC539FE795AF0
1 changed files with 3 additions and 2 deletions

View File

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