[kandinsky/font] Fix for gcc

This commit is contained in:
Ruben Dashyan
2019-05-20 11:59:18 +02:00
committed by LeaNumworks
parent 1c09f49ec0
commit 19529db5d5

View File

@@ -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];
};