13
0

Fix lineset drawing (again), apply cairo 0.5px offset

see also f08299ea1e
This commit is contained in:
Robin Gareus 2023-07-17 23:28:36 +02:00
parent 2698b23f82
commit 3ab3ef3b55
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -101,7 +101,7 @@ LineSet::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) const
for (auto const & l : _lines) {
Rect self;
const double shift = l.width * 0.5 - 1;
const double shift = 0.5;
if (_orientation == Horizontal) {
self = Rect (0, l.pos - (l.width/2.0), _extent, l.pos + (l.width/2.0));