mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 09:54:10 +03:00
Change font::len text argument from std::string to const char*
See the previous two commits, a lot of the time we don't need std::string objects to be passed to these functions because we already have C strings. Commit 1/3: font::print_wrap Commit 2/3: font::print -> Commit 3/3: font::len
This commit is contained in:
committed by
Misa Elizabeth Kai
parent
5e3a4e69ce
commit
d112dee72c
@@ -186,7 +186,7 @@ namespace roomname_translator
|
||||
{
|
||||
*force_roomname_hidden = true;
|
||||
graphics.render_roomname(PR_FONT_LEVEL, key.keybuffer.c_str(), 255,255,255);
|
||||
int name_w = font::len(PR_FONT_LEVEL, key.keybuffer);
|
||||
int name_w = font::len(PR_FONT_LEVEL, key.keybuffer.c_str());
|
||||
font::print(PR_BOR | PR_FONT_LEVEL, (320-name_w)/2+name_w, 231, "_", 255,255,255);
|
||||
}
|
||||
else if (!roomname_is_translated)
|
||||
|
||||
Reference in New Issue
Block a user