mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-26 00:45:35 +00:00
Codechange: use size_t for glyph/run counts, remove unneeded glyph count instance variable
This commit is contained in:
@@ -77,7 +77,7 @@ public:
|
||||
|
||||
const Font *GetFont() const override { return this->font; }
|
||||
int GetLeading() const override { return this->font->fc->GetHeight(); }
|
||||
int GetGlyphCount() const override { return this->glyphs.size(); }
|
||||
size_t GetGlyphCount() const override { return this->glyphs.size(); }
|
||||
int GetAdvance() const { return this->total_advance; }
|
||||
};
|
||||
|
||||
@@ -86,8 +86,8 @@ public:
|
||||
public:
|
||||
int GetLeading() const override;
|
||||
int GetWidth() const override;
|
||||
int CountRuns() const override { return (uint)this->size(); }
|
||||
const VisualRun &GetVisualRun(int run) const override { return this->at(run); }
|
||||
size_t CountRuns() const override { return this->size(); }
|
||||
const VisualRun &GetVisualRun(size_t run) const override { return this->at(run); }
|
||||
|
||||
int GetInternalCharLength(char32_t c) const override
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user