Skip to content

Commit 0ee178d

Browse files
committed
Clang fixes to earlier changes and build compatability with Google environment part 2
1 parent d174c4f commit 0ee178d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

training/stringrenderer.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,14 @@ void StringRenderer::set_resolution(const int resolution) {
140140
font_.set_resolution(resolution);
141141
}
142142

143+
void StringRenderer::set_underline_start_prob(const double frac) {
144+
underline_start_prob_ = min(max(frac, 0.0), 1.0);
145+
}
146+
147+
void StringRenderer::set_underline_continuation_prob(const double frac) {
148+
underline_continuation_prob_ = min(max(frac, 0.0), 1.0);
149+
}
150+
143151
StringRenderer::~StringRenderer() {
144152
ClearBoxes();
145153
FreePangoCairo();

0 commit comments

Comments
 (0)