can pass char to this now
no need to reconvert this stuff from const char to std::string and back to const char really lol
This commit is contained in:
1 parent
5c7be85977
commit
0c440d240c
1 file changed
+2
-2
+2
-2
@@ -147,13 +147,13 @@ void LUA_RenderTimers(void)
|
||||
float row_y = kRowHeight;
|
||||
|
||||
// pretty much what the whole srb2::Draw does lol
|
||||
auto draw_row = [](float x, float y, INT32 flags, const std::string& str)
|
||||
auto draw_row = [](float x, float y, INT32 flags, const char *str)
|
||||
{
|
||||
V_DrawSmallStringAtFixed(
|
||||
FloatToFixed(x),
|
||||
FloatToFixed(y),
|
||||
V_MONOSPACE|V_ALLOWLOWERCASE|flags,
|
||||
str.c_str()
|
||||
str
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user