Skip to content

Commit 037fd91

Browse files
committed
Fixed #13
1 parent 795e7e8 commit 037fd91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderer/glyph_renderer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ HRESULT GlyphRenderer::DrawUnderline(void *client_drawing_context, float baselin
181181
.left = baseline_origin_x,
182182
.top = baseline_origin_y + underline->offset,
183183
.right = baseline_origin_x + underline->width,
184-
.bottom = baseline_origin_y + underline->offset + underline->thickness
184+
.bottom = baseline_origin_y + underline->offset + max(underline->thickness, 1.0f)
185185
};
186186

187187
renderer->d2d_context->FillRectangle(rect, temp_brush);

0 commit comments

Comments
 (0)