noot
This commit is contained in:
parent
c04079691b
commit
beb403c2d1
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue