commit a5ba0b9d306bf0587593804191f4039eac1face3
Author: Guillaume Munch <[email protected]>
Date:   Mon Jul 4 01:03:36 2016 +0200

    Match code with comment
    
    The line felt too thin.
    
    Note: I am still sceptical with the principle of an increase at the rate of
    1/200% instead of 1/100%.
    
    Also, I am sceptical with changing painting dimensions to int when Qt 
supports
    doubles for everything (see e.g. 463bd17d). If the goal is to force
    integer-width solid lines then one could try to disable antialiasing on Qt's
    side.
    
    I think the painter should move in the other direction, towards more 
doubles and
    fewer ints. For instance, for Hi-DPI, Qt could probably take advantage of 
the
    increased precision even without AA. (Then one would have to fix the problem
    regarding uneven lines, mentioned in the above commit, in another fashion.)
---
 src/MetricsInfo.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/MetricsInfo.cpp b/src/MetricsInfo.cpp
index 9f2baa8..589e924 100644
--- a/src/MetricsInfo.cpp
+++ b/src/MetricsInfo.cpp
@@ -45,7 +45,7 @@ MetricsBase::MetricsBase(BufferView * b, FontInfo f, int w)
                // derive the line thickness from zoom factor
                // the zoom is given in percent
                // (increase thickness at 250%, 450% etc.)
-               solid_line_thickness_ = (lyxrc.zoom + 50) / 200;
+               solid_line_thickness_ = (lyxrc.zoom + 150) / 200;
                // adjust line_offset_ too
                solid_line_offset_ = 1 + solid_line_thickness_ / 2;
        }

Reply via email to