mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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.)
This commit is contained in:
parent
f151b932c2
commit
a5ba0b9d30
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user