diff options
author | zeising <zeising@FreeBSD.org> | 2018-06-20 00:24:03 +0800 |
---|---|---|
committer | zeising <zeising@FreeBSD.org> | 2018-06-20 00:24:03 +0800 |
commit | 6e91e1a81d41ce93280a2207e9476c476ab39cf6 (patch) | |
tree | f1c78790f784efe61729f8366f28497622cadf35 /x11 | |
parent | 6e9c9602c0c941336c9d86dc3dfe24a7dcb9ef23 (diff) | |
download | freebsd-ports-gnome-6e91e1a81d41ce93280a2207e9476c476ab39cf6.tar.gz freebsd-ports-gnome-6e91e1a81d41ce93280a2207e9476c476ab39cf6.tar.zst freebsd-ports-gnome-6e91e1a81d41ce93280a2207e9476c476ab39cf6.zip |
Fix build without the XFT option.
PR: 224731
Reported by: ml@netfence.it
Diffstat (limited to 'x11')
-rw-r--r-- | x11/xscreensaver/Makefile | 2 | ||||
-rw-r--r-- | x11/xscreensaver/files/patch-utils_xft.c | 21 |
2 files changed, 22 insertions, 1 deletions
diff --git a/x11/xscreensaver/Makefile b/x11/xscreensaver/Makefile index b556d45687ea..174c8a5ffc35 100644 --- a/x11/xscreensaver/Makefile +++ b/x11/xscreensaver/Makefile @@ -3,7 +3,7 @@ PORTNAME= xscreensaver PORTVERSION= 5.39 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= x11 MASTER_SITES= http://www.jwz.org/xscreensaver/ diff --git a/x11/xscreensaver/files/patch-utils_xft.c b/x11/xscreensaver/files/patch-utils_xft.c new file mode 100644 index 000000000000..362e94a42821 --- /dev/null +++ b/x11/xscreensaver/files/patch-utils_xft.c @@ -0,0 +1,21 @@ +--- utils/xft.c.orig 2018-06-17 08:45:55 UTC ++++ utils/xft.c +@@ -198,12 +198,12 @@ XftColorAllocValue (Display *dpy, + int green_shift, green_len; + int blue_shift, blue_len; + +- red_shift = maskbase (visual->rgba_masks[0]); +- red_len = masklen (visual->rgba_masks[0]); +- green_shift = maskbase (visual->rgba_masks[1]); +- green_len = masklen (visual->rgba_masks[1]); +- blue_shift = maskbase (visual->rgba_masks[2]); +- blue_len = masklen (visual->rgba_masks[2]); ++ red_shift = maskbase (visual->red_mask); ++ red_len = masklen (visual->red_mask); ++ green_shift = maskbase (visual->green_mask); ++ green_len = masklen (visual->green_mask); ++ blue_shift = maskbase (visual->blue_mask); ++ blue_len = masklen (visual->blue_mask); + result->pixel = (((color->red >> (16 - red_len)) << red_shift) | + ((color->green >> (16 - green_len)) << green_shift) | + ((color->blue >> (16 - blue_len)) << blue_shift)); |