[gtk: 1/2] Make dashed border-style work correctly
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 1/2] Make dashed border-style work correctly
- Date: Tue, 25 Sep 2018 07:13:18 +0000 (UTC)
commit 42d064c62fbd5257d425b14e5b67b9e914846b73
Author: Arnaud B <arnaud bonatti gmail com>
Date: Fri Sep 21 12:25:23 2018 +0000
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.
gtk/gtkrenderborder.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkrenderborder.c b/gtk/gtkrenderborder.c
index f0edb8cb0c..1c568532ce 100644
--- a/gtk/gtkrenderborder.c
+++ b/gtk/gtkrenderborder.c
@@ -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
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]