Codechange: Pass single rect to DrawString calls instead of separate parameters. (#13675)

This commit is contained in:
Peter Nelson
2025-03-01 10:12:43 +00:00
committed by GitHub
parent 6afde67872
commit 63812a45bb
5 changed files with 16 additions and 16 deletions

View File

@@ -410,7 +410,7 @@ public:
const AirportSpec *as = AirportClass::Get(_selected_airport_class)->GetSpec(_selected_airport_index);
StringID string = GetAirportTextCallback(as, _selected_airport_layout, CBID_AIRPORT_ADDITIONAL_TEXT);
if (string != STR_UNDEFINED) {
DrawStringMultiLine(r.left, r.right, r.top, r.bottom, string, TC_BLACK);
DrawStringMultiLine(r, string, TC_BLACK);
}
}
break;