From 83bf2fdf80496f0368438e16bc3adb8ee0e86fb7 Mon Sep 17 00:00:00 2001 From: Rick Yorgason Date: Thu, 18 Oct 2018 01:21:15 -0700 Subject: Renamed "Outline thin strokes" to "visible hairlines" to make the intent clearer. --- src/display/drawing-text.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/display/drawing-text.cpp') diff --git a/src/display/drawing-text.cpp b/src/display/drawing-text.cpp index b48ce7d31..d823012e3 100644 --- a/src/display/drawing-text.cpp +++ b/src/display/drawing-text.cpp @@ -604,12 +604,13 @@ unsigned DrawingText::_renderItem(DrawingContext &dc, Geom::IntRect const &/*are if (has_stroke) { _nrstyle.applyStroke(dc); - // Special handling for thin outline mode when we're drawing lines smaller than half a pixel - if (_drawing.outlineThin()) { - double outline_thin_size = 0.5, trash = 0.5; - dc.device_to_user_distance(outline_thin_size, trash); - if (_nrstyle.stroke_width < outline_thin_size) { - dc.setLineWidth(outline_thin_size); + // If the draw mode is set to visible hairlines, don't let anything get smaller + // than half a pixel. + if (_drawing.visibleHairlines()) { + double half_pixel_size = 0.5, trash = 0.5; + dc.device_to_user_distance(half_pixel_size, trash); + if (_nrstyle.stroke_width < half_pixel_size) { + dc.setLineWidth(half_pixel_size); } } -- cgit v1.2.3