viewgfx.cpp: Fix palette viewer if indirect pen exists (#12982)

This commit is contained in:
cam900 2024-11-17 00:43:22 +09:00 committed by GitHub
parent c6b2fbf93f
commit a3476faf06
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1032,7 +1032,7 @@ uint32_t gfx_viewer::handle_palette(mame_ui_manager &mui, render_container &cont
if (index < total)
{
rgb_t const col = indirect ? palette.indirect_color(index) : raw_color[index];
if (palette.indirect_entries() && indirect)
if (palette.indirect_entries() && !indirect)
{
util::stream_format(title_buf,
_("gfxview", u8" #%1$X \u2192 %2$X (A:%3$02X R:%4$02X G:%5$02X B:%6$02X)"),