mirror of
https://github.com/holub/mame
synced 2025-05-21 05:08:54 +03:00
Fix compile error.
This commit is contained in:
parent
5acbd72623
commit
ba36521102
@ -2022,7 +2022,7 @@ static void memory_update_caption(running_machine *machine, HWND wnd)
|
|||||||
const memory_subview_item *subview = memory_view_get_current_subview(info->view[0].view);
|
const memory_subview_item *subview = memory_view_get_current_subview(info->view[0].view);
|
||||||
char title[256];
|
char title[256];
|
||||||
|
|
||||||
sprintf(title, "Memory: %s", subview->name);
|
sprintf(title, "Memory: %s", subview->name.cstr());
|
||||||
win_set_window_text_utf8(wnd, title);
|
win_set_window_text_utf8(wnd, title);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2347,7 +2347,7 @@ static void disasm_update_caption(running_machine *machine, HWND wnd)
|
|||||||
const disasm_subview_item *subview = disasm_view_get_current_subview(info->view[0].view);
|
const disasm_subview_item *subview = disasm_view_get_current_subview(info->view[0].view);
|
||||||
char title[256];
|
char title[256];
|
||||||
|
|
||||||
sprintf(title, "Disassembly: %s", subview->name);
|
sprintf(title, "Disassembly: %s", subview->name.cstr());
|
||||||
win_set_window_text_utf8(wnd, title);
|
win_set_window_text_utf8(wnd, title);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2587,7 +2587,7 @@ static void console_set_cpu(running_device *device)
|
|||||||
// then update the caption
|
// then update the caption
|
||||||
if (regsubitem != NULL)
|
if (regsubitem != NULL)
|
||||||
{
|
{
|
||||||
snprintf(title, ARRAY_LENGTH(title), "Debug: %s - %s", device->machine->gamedrv->name, regsubitem->name);
|
snprintf(title, ARRAY_LENGTH(title), "Debug: %s - %s", device->machine->gamedrv->name, regsubitem->name.cstr());
|
||||||
win_get_window_text_utf8(main_console->wnd, curtitle, ARRAY_LENGTH(curtitle));
|
win_get_window_text_utf8(main_console->wnd, curtitle, ARRAY_LENGTH(curtitle));
|
||||||
if (strcmp(title, curtitle) != 0)
|
if (strcmp(title, curtitle) != 0)
|
||||||
win_set_window_text_utf8(main_console->wnd, title);
|
win_set_window_text_utf8(main_console->wnd, title);
|
||||||
|
Loading…
Reference in New Issue
Block a user