Formatting.
This commit is contained in:
parent
8f7d2dd06a
commit
33338aa0f2
|
@ -37,14 +37,13 @@ namespace KIGFX {
|
|||
const FONT_GLYPH_TYPE* LookupGlyph( unsigned int aCodepoint )
|
||||
{
|
||||
#ifdef BITMAP_FONT_USE_SPANS
|
||||
auto *end = font_codepoint_spans
|
||||
+ sizeof( font_codepoint_spans ) / sizeof(FONT_SPAN_TYPE);
|
||||
auto *end = font_codepoint_spans + sizeof( font_codepoint_spans ) / sizeof(FONT_SPAN_TYPE);
|
||||
|
||||
auto ptr = std::upper_bound( font_codepoint_spans, end, aCodepoint,
|
||||
[]( unsigned int codepoint, const FONT_SPAN_TYPE& span )
|
||||
{
|
||||
return codepoint < span.end;
|
||||
}
|
||||
);
|
||||
} );
|
||||
|
||||
if( ptr != end && ptr->start <= aCodepoint )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue