mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-07 14:27:56 +03:00
Use std::string_view in Encoding and AGS::draw_text()
This commit is contained in:
+5
-5
@@ -376,8 +376,8 @@ void NACT::cmd_set_verbobj()
|
||||
verb_obj = true;
|
||||
|
||||
TRACE("[%x,%s,%s:", addr,
|
||||
encoding->toUtf8(caption_verb[verb].c_str()).c_str(),
|
||||
encoding->toUtf8(caption_obj[obj].c_str()).c_str());
|
||||
encoding->toUtf8(caption_verb[verb]).c_str(),
|
||||
encoding->toUtf8(caption_obj[obj]).c_str());
|
||||
}
|
||||
|
||||
void NACT::cmd_set_verbobj2()
|
||||
@@ -393,8 +393,8 @@ void NACT::cmd_set_verbobj2()
|
||||
verb_obj = true;
|
||||
|
||||
TRACE(":%d,%x,%s,%s:", condition, addr,
|
||||
encoding->toUtf8(caption_verb[verb].c_str()).c_str(),
|
||||
encoding->toUtf8(caption_obj[obj].c_str()).c_str());
|
||||
encoding->toUtf8(caption_verb[verb]).c_str(),
|
||||
encoding->toUtf8(caption_obj[obj]).c_str());
|
||||
}
|
||||
|
||||
void NACT::cmd_a()
|
||||
@@ -474,7 +474,7 @@ void NACT::cmd_x()
|
||||
TRACE("X %d:", index);
|
||||
|
||||
if(1 <= index && index <= 10) {
|
||||
ags->draw_text(tvar[index - 1].c_str());
|
||||
ags->draw_text(tvar[index - 1]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user