From be5fb2c7b80a91d920927cce2267a7d539156a39 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 15 Sep 2022 02:19:22 +0100 Subject: [PATCH] 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.) --- include/gal/graphics_abstraction_layer.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/gal/graphics_abstraction_layer.h b/include/gal/graphics_abstraction_layer.h index 021ea69710..752d576055 100644 --- a/include/gal/graphics_abstraction_layer.h +++ b/include/gal/graphics_abstraction_layer.h @@ -196,7 +196,12 @@ public: /** * Draw polygons representing font glyphs. */ - virtual void DrawGlyphs( const std::vector>& aGlyphs ) {}; + virtual void DrawGlyphs( const std::vector>& aGlyphs ) + { + for( size_t i = 0; i < aGlyphs.size(); i++ ) + DrawGlyph( *aGlyphs[i], i, aGlyphs.size() ); + } + /** * Draw a polygon.