forked from AuroraMiddleware/gtk
Make dashed border-style work correctly
There’s a short-path done for focus rectangles, but it can be taken in other conditions, and then fail occasionally to render a dashed line if the border-width is too big.
This commit is contained in:
parent
2b8e30a8ed
commit
42d064c62f
@ -405,8 +405,8 @@ set_stroke_style (cairo_t *cr,
|
||||
*/
|
||||
if (n == nearbyint (n))
|
||||
{
|
||||
segments[0] = 1;
|
||||
segments[1] = 2;
|
||||
segments[0] = line_width;
|
||||
segments[1] = 2 * line_width;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user