Clang fixes to earlier changes and build compatability with Google environment part 2

This commit is contained in:
Ray Smith 2015-06-12 11:17:47 -07:00
parent d174c4fd33
commit 0ee178d79b

View File

@ -140,6 +140,14 @@ void StringRenderer::set_resolution(const int resolution) {
font_.set_resolution(resolution);
}
void StringRenderer::set_underline_start_prob(const double frac) {
underline_start_prob_ = min(max(frac, 0.0), 1.0);
}
void StringRenderer::set_underline_continuation_prob(const double frac) {
underline_continuation_prob_ = min(max(frac, 0.0), 1.0);
}
StringRenderer::~StringRenderer() {
ClearBoxes();
FreePangoCairo();