summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/ui/videoopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/ui/videoopt.c')
-rw-r--r--src/emu/ui/videoopt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/emu/ui/videoopt.c b/src/emu/ui/videoopt.c
index d0788527b2e..57e25ce5edc 100644
--- a/src/emu/ui/videoopt.c
+++ b/src/emu/ui/videoopt.c
@@ -174,7 +174,7 @@ ui_menu_video_options::ui_menu_video_options(running_machine &machine, render_co
void ui_menu_video_options::populate()
{
const char *subtext = "";
- astring tempstring;
+ std::string tempstring;
int viewnum;
int enabled;
@@ -186,7 +186,8 @@ void ui_menu_video_options::populate()
break;
/* create a string for the item, replacing underscores with spaces */
- tempstring.cpy(name).replace(0, "_", " ");
+ tempstring.assign(name);
+ strreplace(tempstring, "_", " ");
item_append(tempstring.c_str(), NULL, 0, (void *)(FPTR)(VIDEO_ITEM_VIEW + viewnum));
}