Skip to content

Commit

Permalink
Clang fixes to earlier changes and build compatability with Google en…
Browse files Browse the repository at this point in the history
…vironment part 2
  • Loading branch information
theraysmith committed Jun 12, 2015
1 parent d174c4f commit 0ee178d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions training/stringrenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 0ee178d

Please sign in to comment.