[patch] x11-servers/xorg-server: glamor: Fix dashed line rendering (from upstream)
danfe at nsu.ru
Wed Nov 22 10:33:41 UTC 2017
May I commit the attached patch? It fixes displaying dashed and dotted
lines in 2D applications (e.g. bounding boxes around active widgets e.g.
buttons) which are drawn as solid lines without this patch. Found via
openSUSE's xorg-x11-server package.
-------------- next part --------------
From: Eric Anholt <eric at anholt.net>
Date: Wed Mar 15 17:51:46 2017 -0700
Subject: [PATCH]glamor: Fix dashed line rendering.
Signed-off-by: Max Staudt <mstaudt at suse.de>
We were binding the screen pixmap as the dash and sampling its alpha,
which is usually just 1.0 (no dashing at all).
Please cherry-pick this to active stable branches.
Signed-off-by: Eric Anholt <eric at anholt.net>
Reviewed-by: Keith Packard <keithp at keithp.com>
Reviewed-by: Michel D??nzer <michel.daenzer at amd.com>
--- glamor/glamor_dash.c.orig 2016-07-18 19:08:16 UTC
@@ -146,7 +146,7 @@ glamor_dash_setup(DrawablePtr drawable, GCPtr gc)
dash_pixmap = glamor_get_dash_pixmap(gc);
- dash_priv = glamor_get_pixmap_private(pixmap);
+ dash_priv = glamor_get_pixmap_private(dash_pixmap);
More information about the freebsd-x11