Remove superfluous .c_str()

This commit is contained in:
Henrik Rydgård
2024-10-17 22:21:07 +02:00
parent 2f135e0b3c
commit 843fe22968
4 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -593,7 +593,7 @@ void DrawBuffer::DrawTextRect(FontID font, std::string_view text, float x, float
// This allows each line to be horizontally centered by itself.
for (const std::string &line : lines) {
DrawText(font, line.c_str(), x, baseY, color, align);
DrawText(font, line, x, baseY, color, align);
float tw, th;
MeasureText(font, line, &tw, &th);