Fix CI and replacement character (#133)

This commit is contained in:
Yaya-Cout
2022-01-24 18:22:07 +01:00
committed by GitHub
parent f4ce415e32
commit 24205a7e03
3 changed files with 3 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ QUIZ_CASE(ion_events_from_keyboard) {
// Test some fallbacks // Test some fallbacks
quiz_assert(Event(Key::EXE, false, false, false) == EXE); quiz_assert(Event(Key::EXE, false, false, false) == EXE);
quiz_assert(Event(Key::EXE, true, false, false) == EXE); quiz_assert(Event(Key::EXE, true, false, false) == ShiftEXE);
quiz_assert(Event(Key::EXE, false, true, false) == EXE); quiz_assert(Event(Key::EXE, false, true, false) == EXE);
quiz_assert(Event(Key::EXE, true, true, false) == EXE); quiz_assert(Event(Key::EXE, true, true, false) == EXE);
quiz_assert(Event(Key::EXE, false, true, true) == EXE); quiz_assert(Event(Key::EXE, false, true, true) == EXE);

View File

@@ -61,7 +61,7 @@ public:
CodePoint m_codePoint; CodePoint m_codePoint;
GlyphIndex m_glyphIndex; GlyphIndex m_glyphIndex;
}; };
static constexpr GlyphIndex IndexForReplacementCharacterCodePoint = 134; static constexpr GlyphIndex IndexForReplacementCharacterCodePoint = 190;
GlyphIndex indexForCodePoint(CodePoint c) const; GlyphIndex indexForCodePoint(CodePoint c) const;
void setGlyphGrayscalesForCodePoint(CodePoint codePoint, GlyphBuffer * glyphBuffer) const; void setGlyphGrayscalesForCodePoint(CodePoint codePoint, GlyphBuffer * glyphBuffer) const;

View File

@@ -155,7 +155,7 @@ KDFont::GlyphIndex KDFont::indexForCodePoint(CodePoint c) const {
return endPair->glyphIndex(); return endPair->glyphIndex();
} }
NoMatchingGlyph: NoMatchingGlyph:
assert(SimpleCodePoints[IndexForReplacementCharacterCodePoint] == 0xFFFD); assert(ExtendedCodePoints[IndexForReplacementCharacterCodePoint] == 0xFFFD);
return IndexForReplacementCharacterCodePoint; return IndexForReplacementCharacterCodePoint;
#endif #endif
} }