mirror of
https://github.com/holub/mame
synced 2025-07-02 16:49:22 +03:00
Fixed compile error:
error: expected identifier before numeric constant OPAQUE error: expected '}' before numeric constant error: expected unqualified-id before numeric constant
This commit is contained in:
parent
0b0fe986dc
commit
978bf95bd9
@ -1236,7 +1236,7 @@ void cheat_manager::render_text(mame_ui_manager &mui, render_container &containe
|
||||
// output the text
|
||||
mui.draw_text_full(&container, m_output[linenum].c_str(),
|
||||
0.0f, (float)linenum * mui.get_line_height(), 1.0f,
|
||||
m_justify[linenum], ui::text_layout::NEVER, mame_ui_manager::OPAQUE,
|
||||
m_justify[linenum], ui::text_layout::NEVER, mame_ui_manager::OPAQUE_,
|
||||
rgb_t::white, rgb_t::black, nullptr, nullptr);
|
||||
}
|
||||
}
|
||||
|
@ -503,7 +503,7 @@ void menu::draw(UINT32 flags, float origx0, float origy0)
|
||||
if (ui().show_fps_counter())
|
||||
{
|
||||
ui().draw_text_full(container, machine().video().speed_text().c_str(), 0.0f, 0.0f, 1.0f,
|
||||
ui::text_layout::RIGHT, ui::text_layout::WORD, mame_ui_manager::OPAQUE, rgb_t::white, rgb_t::black, nullptr, nullptr);
|
||||
ui::text_layout::RIGHT, ui::text_layout::WORD, mame_ui_manager::OPAQUE_, rgb_t::white, rgb_t::black, nullptr, nullptr);
|
||||
}
|
||||
|
||||
bool const customonly = (flags & PROCESS_CUSTOM_ONLY);
|
||||
|
@ -562,7 +562,7 @@ void mame_ui_manager::draw_text_full(render_container *container, const char *or
|
||||
layout.add_text(
|
||||
origs,
|
||||
fgcolor,
|
||||
draw == OPAQUE ? bgcolor : rgb_t::transparent,
|
||||
draw == OPAQUE_ ? bgcolor : rgb_t::transparent,
|
||||
text_size);
|
||||
|
||||
// and emit it (if we are asked to do so)
|
||||
@ -1167,7 +1167,7 @@ void mame_ui_manager::paste()
|
||||
void mame_ui_manager::draw_fps_counter(render_container *container)
|
||||
{
|
||||
draw_text_full(container, machine().video().speed_text().c_str(), 0.0f, 0.0f, 1.0f,
|
||||
ui::text_layout::RIGHT, ui::text_layout::WORD, OPAQUE, rgb_t::white, rgb_t::black, nullptr, nullptr);
|
||||
ui::text_layout::RIGHT, ui::text_layout::WORD, OPAQUE_, rgb_t::white, rgb_t::black, nullptr, nullptr);
|
||||
}
|
||||
|
||||
|
||||
@ -1179,7 +1179,7 @@ void mame_ui_manager::draw_timecode_counter(render_container *container)
|
||||
{
|
||||
std::string tempstring;
|
||||
draw_text_full(container, machine().video().timecode_text(tempstring).c_str(), 0.0f, 0.0f, 1.0f,
|
||||
ui::text_layout::RIGHT, ui::text_layout::WORD, OPAQUE, rgb_t(0xf0, 0xf0, 0x10, 0x10), rgb_t::black, nullptr, nullptr);
|
||||
ui::text_layout::RIGHT, ui::text_layout::WORD, OPAQUE_, rgb_t(0xf0, 0xf0, 0x10, 0x10), rgb_t::black, nullptr, nullptr);
|
||||
}
|
||||
|
||||
|
||||
@ -1191,7 +1191,7 @@ void mame_ui_manager::draw_timecode_total(render_container *container)
|
||||
{
|
||||
std::string tempstring;
|
||||
draw_text_full(container, machine().video().timecode_total_text(tempstring).c_str(), 0.0f, 0.0f, 1.0f,
|
||||
ui::text_layout::LEFT, ui::text_layout::WORD, OPAQUE, rgb_t(0xf0, 0x10, 0xf0, 0x10), rgb_t::black, nullptr, nullptr);
|
||||
ui::text_layout::LEFT, ui::text_layout::WORD, OPAQUE_, rgb_t(0xf0, 0x10, 0xf0, 0x10), rgb_t::black, nullptr, nullptr);
|
||||
}
|
||||
|
||||
|
||||
@ -1202,7 +1202,7 @@ void mame_ui_manager::draw_timecode_total(render_container *container)
|
||||
void mame_ui_manager::draw_profiler(render_container *container)
|
||||
{
|
||||
const char *text = g_profiler.text(machine());
|
||||
draw_text_full(container, text, 0.0f, 0.0f, 1.0f, ui::text_layout::LEFT, ui::text_layout::WORD, OPAQUE, rgb_t::white, rgb_t::black, nullptr, nullptr);
|
||||
draw_text_full(container, text, 0.0f, 0.0f, 1.0f, ui::text_layout::LEFT, ui::text_layout::WORD, OPAQUE_, rgb_t::white, rgb_t::black, nullptr, nullptr);
|
||||
}
|
||||
|
||||
|
||||
|
@ -147,7 +147,7 @@ public:
|
||||
{
|
||||
NONE,
|
||||
NORMAL,
|
||||
OPAQUE
|
||||
OPAQUE_
|
||||
};
|
||||
|
||||
// construction/destruction
|
||||
|
Loading…
Reference in New Issue
Block a user