Provide a default (non-optimized) version of DrawGlyphs.

(We could possibly implement an optimized version for CALLBACK_GAL,
but not having an impl at all was breaking DRC and the DRC tests.)
This commit is contained in:
Jeff Young 2022-09-15 02:19:22 +01:00
parent 125ea73adf
commit be5fb2c7b8
1 changed files with 6 additions and 1 deletions

View File

@ -196,7 +196,12 @@ public:
/**
* Draw polygons representing font glyphs.
*/
virtual void DrawGlyphs( const std::vector<std::unique_ptr<KIFONT::GLYPH>>& aGlyphs ) {};
virtual void DrawGlyphs( const std::vector<std::unique_ptr<KIFONT::GLYPH>>& aGlyphs )
{
for( size_t i = 0; i < aGlyphs.size(); i++ )
DrawGlyph( *aGlyphs[i], i, aGlyphs.size() );
}
/**
* Draw a polygon.