another pixel width fix, to accomodate for the unliekly
If the line width is odd, not just 1.0, the 0.5 pixel shift is required
This commit is contained in:
parent
0a597bea66
commit
2242b3706c
@ -197,8 +197,8 @@ Ruler::render (Rect const & area, Cairo::RefPtr<Cairo::Context> cr) const
|
|||||||
prev = pos.x;
|
prev = pos.x;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_outline_width == 1.0) {
|
if (fmod (_outline_width, 2.)) {
|
||||||
/* Cairo single pixel line correction */
|
/* Cairo odd pixel width line correction */
|
||||||
cr->move_to (pos.x + 0.5, pos.y);
|
cr->move_to (pos.x + 0.5, pos.y);
|
||||||
} else {
|
} else {
|
||||||
cr->move_to (pos.x, pos.y);
|
cr->move_to (pos.x, pos.y);
|
||||||
|
Loading…
Reference in New Issue
Block a user