[kandinsky] Fix font test

This commit is contained in:
Léa Saviot
2019-02-28 13:50:22 +01:00
committed by Émilie Feral
parent 11b26bfa16
commit f638809ca5
3 changed files with 27 additions and 4 deletions

View File

@@ -82,6 +82,7 @@ void KDFont::colorizeGlyphBuffer(const RenderPalette * renderPalette, GlyphBuffe
KDFont::GlyphIndex KDFont::indexForCodePoint(CodePoint c) const {
int defaultIndex = NumberOfCodePoints - 2;
assert(defaultIndex == 132); // If not, change kandinsky/test/font.cpp
assert(CodePoints[defaultIndex] == 0xFFFD);
#define USE_BINARY_SEARCH 0
#if USE_BINARY_SEARCH