Skip to content

Commit

Permalink
add: fix palette usage in the sprite tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerome Le Saux committed May 5, 2024
1 parent feefd46 commit 0a02afa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion export/ocpartstudio/window/win.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ func OpenWin(filePath string) (*OcpWinFooter, error) {
}

ocpWinFooter := &OcpWinFooter{}
//_, err = fr.Seek(-5, io.SeekEnd)

log.GetLogger().Info("LogicalSize=%d\n", header.LogicalSize)
_, err = fr.Seek(0x80+int64(header.LogicalSize)-5, io.SeekStart)
Expand Down
1 change: 1 addition & 0 deletions ui/martine-ui/sprite_tab.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ func (m *MartineUI) ApplySprite(s *menu.SpriteMenu) {
pal = constants.FillColorPalette(pal)
pal = constants.SortColorsByDistance(pal)
s.SetPalette(pal)
s.UsePalette = false
}

size := constants.Size{Width: s.SpriteWidth, Height: s.SpriteHeight}
Expand Down

0 comments on commit 0a02afa

Please sign in to comment.