From 77df361b3f9ef3c6f302524353085d91569d3963 Mon Sep 17 00:00:00 2001 From: Ruben Dashyan Date: Mon, 20 May 2019 11:59:18 +0200 Subject: [PATCH] [kandinsky/font] Fix for gcc --- kandinsky/include/kandinsky/font.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kandinsky/include/kandinsky/font.h b/kandinsky/include/kandinsky/font.h index 06d3dfe6d..10ec5ae67 100644 --- a/kandinsky/include/kandinsky/font.h +++ b/kandinsky/include/kandinsky/font.h @@ -26,6 +26,7 @@ class KDFont { private: static constexpr int k_bitsPerPixel = 4; // TODO: Should be generated by the rasterizer + static constexpr int k_maxGlyphPixelCount = 180; //TODO: Should be generated by the rasterizer static const KDFont privateLargeFont; static const KDFont privateSmallFont; public: @@ -44,7 +45,6 @@ public: uint8_t * greyscaleBuffer() { return m_greyscales; } uint8_t * secondaryGreyscaleBuffer() { return m_greyscales + k_maxGlyphPixelCount; } private: - static constexpr int k_maxGlyphPixelCount = 180; //TODO: Should be generated by the rasterizer uint8_t m_greyscales[2*k_maxGlyphPixelCount]; KDColor m_colors[k_maxGlyphPixelCount]; };