fix clang warning on std::max

This commit is contained in:
James Turk 2016-10-07 12:10:10 -04:00
parent 4e8b9c2fa3
commit 8f02ca1df2
2 changed files with 3 additions and 3 deletions

View File

@ -146,8 +146,8 @@ void GLFT_Font::open(const std::string& filename, unsigned int size)
lineSpace -= widths_[ch];
maxAscent = std::max(face->glyph->bitmap_top, maxAscent);
maxDescent = std::max(face->glyph->bitmap.rows -
face->glyph->bitmap_top, maxDescent);
maxDescent = std::max((int)face->glyph->bitmap.rows -
(int)face->glyph->bitmap_top, maxDescent);
}
height_ = maxAscent + maxDescent; // calculate height_ for text

View File

@ -1,6 +1,6 @@
UNAME := $(shell uname)
ifeq ($(UNAME), Darwix)
ifeq ($(UNAME), Darwin)
GL := -framework OpenGL
else
GL := -lGL -lXrandr