Use std::min and std::max, not the misc versions.
This commit is contained in:
@ -118,7 +118,7 @@ FltkFont::FltkFont (core::style::FontAttrs *attrs)
|
||||
fl_font(font, size);
|
||||
// WORKAROUND: A bug with fl_width(uint_t) on non-xft X was present in
|
||||
// 1.3.0 (STR #2688).
|
||||
spaceWidth = misc::max(0, (int)fl_width(" ") + letterSpacing);
|
||||
spaceWidth = std::max(0, (int)fl_width(" ") + letterSpacing);
|
||||
int xx, xy, xw, xh;
|
||||
fl_text_extents("x", xx, xy, xw, xh);
|
||||
xHeight = xh;
|
||||
|
||||
Reference in New Issue
Block a user