From 0a02afa77ac9db678e3f109395e0c88ef8755b26 Mon Sep 17 00:00:00 2001 From: Jerome Le Saux Date: Sun, 5 May 2024 22:10:16 +0200 Subject: [PATCH] add: fix palette usage in the sprite tab --- export/ocpartstudio/window/win.go | 1 - ui/martine-ui/sprite_tab.go | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/export/ocpartstudio/window/win.go b/export/ocpartstudio/window/win.go index e918836..beeccc0 100644 --- a/export/ocpartstudio/window/win.go +++ b/export/ocpartstudio/window/win.go @@ -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) diff --git a/ui/martine-ui/sprite_tab.go b/ui/martine-ui/sprite_tab.go index 9a239fc..8a9576a 100644 --- a/ui/martine-ui/sprite_tab.go +++ b/ui/martine-ui/sprite_tab.go @@ -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}