mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-26 23:10:38 +00:00
Remove superfluous .c_str()
This commit is contained in:
parent
2f135e0b3c
commit
843fe22968
@ -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);
|
||||
|
@ -539,10 +539,10 @@ void PSPSaveDialog::DisplaySaveDataInfo1() {
|
||||
titleStyle.color = CalcFadedColor(0xFFC0C0C0);
|
||||
PPGeStyle textStyle = FadedStyle(PPGeAlign::BOX_LEFT, 0.5f);
|
||||
|
||||
PPGeDrawText(titleTxt.c_str(), 180, 136, titleStyle);
|
||||
PPGeDrawText(timeTxt.c_str(), 180, 137, textStyle);
|
||||
PPGeDrawText(saveTitleTxt.c_str(), 175, 159, saveTitleStyle);
|
||||
PPGeDrawTextWrapped(saveDetailTxt.c_str(), 175, 181, 480 - 175, 250 - 181, textStyle);
|
||||
PPGeDrawText(titleTxt, 180, 136, titleStyle);
|
||||
PPGeDrawText(timeTxt, 180, 137, textStyle);
|
||||
PPGeDrawText(saveTitleTxt, 175, 159, saveTitleStyle);
|
||||
PPGeDrawTextWrapped(saveDetailTxt, 175, 181, 480 - 175, 250 - 181, textStyle);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -92,7 +92,7 @@ void DrawGPUMemoryVis(UIContext *ui, GPUInterface *gpu) {
|
||||
int y = starty;
|
||||
|
||||
ui->SetFontScale(0.7f, 0.7f);
|
||||
ui->DrawTextShadow(str.str().c_str(), x, y, 0xFFFFFFFF, FLAG_DYNAMIC_ASCII);
|
||||
ui->DrawTextShadow(str.str(), x, y, 0xFFFFFFFF, FLAG_DYNAMIC_ASCII);
|
||||
ui->SetFontScale(1.0f, 1.0f);
|
||||
ui->Flush();
|
||||
}
|
||||
@ -115,7 +115,7 @@ void DrawGPUProfilerVis(UIContext *ui, GPUInterface *gpu) {
|
||||
std::string text = ui->GetDrawContext()->GetGpuProfileString();
|
||||
|
||||
ui->SetFontScale(0.4f, 0.4f);
|
||||
ui->DrawTextShadow(text.c_str(), x, y, 0xFFFFFFFF, FLAG_DYNAMIC_ASCII);
|
||||
ui->DrawTextShadow(text, x, y, 0xFFFFFFFF, FLAG_DYNAMIC_ASCII);
|
||||
ui->SetFontScale(1.0f, 1.0f);
|
||||
ui->Flush();
|
||||
}
|
||||
|
@ -785,7 +785,7 @@ void LogoScreen::DrawForeground(UIContext &dc) {
|
||||
// Add some emoji for testing.
|
||||
apiName += CodepointToUTF8(0x1F41B) + CodepointToUTF8(0x1F41C) + CodepointToUTF8(0x1F914);
|
||||
#endif
|
||||
dc.DrawText(gr->T_cstr(apiName.c_str()), bounds.centerX(), ppsspp_org_y + 50, textColor, ALIGN_CENTER);
|
||||
dc.DrawText(gr->T(apiName.c_str()), bounds.centerX(), ppsspp_org_y + 50, textColor, ALIGN_CENTER);
|
||||
#endif
|
||||
|
||||
dc.Flush();
|
||||
|
Loading…
Reference in New Issue
Block a user