fix clang warning on std::max
This commit is contained in:
parent
4e8b9c2fa3
commit
8f02ca1df2
@ -146,8 +146,8 @@ void GLFT_Font::open(const std::string& filename, unsigned int size)
|
|||||||
lineSpace -= widths_[ch];
|
lineSpace -= widths_[ch];
|
||||||
|
|
||||||
maxAscent = std::max(face->glyph->bitmap_top, maxAscent);
|
maxAscent = std::max(face->glyph->bitmap_top, maxAscent);
|
||||||
maxDescent = std::max(face->glyph->bitmap.rows -
|
maxDescent = std::max((int)face->glyph->bitmap.rows -
|
||||||
face->glyph->bitmap_top, maxDescent);
|
(int)face->glyph->bitmap_top, maxDescent);
|
||||||
}
|
}
|
||||||
|
|
||||||
height_ = maxAscent + maxDescent; // calculate height_ for text
|
height_ = maxAscent + maxDescent; // calculate height_ for text
|
||||||
|
Loading…
Reference in New Issue
Block a user