summaryrefslogtreecommitdiffstats
path: root/src/emu/ui/viewgfx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/ui/viewgfx.cpp')
-rw-r--r--src/emu/ui/viewgfx.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/ui/viewgfx.cpp b/src/emu/ui/viewgfx.cpp
index 74d21da7585..b334ed324d5 100644
--- a/src/emu/ui/viewgfx.cpp
+++ b/src/emu/ui/viewgfx.cpp
@@ -389,7 +389,7 @@ static void palette_handler(running_machine &machine, render_container *containe
// figure out the title and expand the outer box to fit
const char *suffix = palette->indirect_entries() == 0 ? "" : state.palette.which ? " COLORS" : " PENS";
- sprintf(title, "'%s'%s", palette->tag(), suffix);
+ sprintf(title, "'%s'%s", palette->tag().c_str(), suffix);
titlewidth = ui_font->string_width(chheight, machine.render().ui_aspect(), title);
x0 = 0.0f;
if (boxbounds.x1 - boxbounds.x0 < titlewidth + chwidth)
@@ -649,7 +649,7 @@ static void gfxset_handler(running_machine &machine, render_container *container
// figure out the title and expand the outer box to fit
sprintf(title, "'%s' %d/%d %dx%d COLOR %X",
- interface.device().tag(),
+ interface.device().tag().c_str(),
set, info.setcount - 1,
gfx.width(), gfx.height(),
info.color[set]);