Codechange: replace text-buf printf with fmt::format

This commit is contained in:
Rubidium
2023-04-19 20:37:21 +02:00
committed by rubidium42
parent 173ed81dbe
commit 3105d0b09e
4 changed files with 6 additions and 20 deletions

View File

@@ -403,7 +403,7 @@ struct NewGRFInspectWindow : Window {
offset -= this->vscroll->GetPosition();
if (offset < 0 || offset >= this->vscroll->GetCapacity()) return;
::DrawString(r.Shrink(WidgetDimensions::scaled.frametext).Shrink(0, offset * this->resize.step_height, 0, 0), buf, TC_BLACK);
::DrawString(r.Shrink(WidgetDimensions::scaled.frametext).Shrink(0, offset * this->resize.step_height, 0, 0), string, TC_BLACK);
}
/**