summaryrefslogtreecommitdiffstats
path: root/graphics/hsetroot/files
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2003-12-05 08:52:56 +0000
committerpav <pav@FreeBSD.org>2003-12-05 08:52:56 +0000
commita6e2a6d66111e3fe5d6e403b278733ef942490e7 (patch)
tree6096f08d3b8be823f081b8d6406e34630f7cfc4a /graphics/hsetroot/files
parented1005a73e883c4ed3a0e40d4a77171472cf6fbb (diff)
downloadFreeBSD-ports-a6e2a6d66111e3fe5d6e403b278733ef942490e7.zip
FreeBSD-ports-a6e2a6d66111e3fe5d6e403b278733ef942490e7.tar.gz
Add hsetroot, a tool for transforming wallpapers and setting them as
a root window pixmap, based on Imlib library. PR: ports/59857 Submitted by: vinc <vinc@freebsd-fr.org>
Diffstat (limited to 'graphics/hsetroot/files')
-rw-r--r--graphics/hsetroot/files/patch-src-hsetroot.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/graphics/hsetroot/files/patch-src-hsetroot.c b/graphics/hsetroot/files/patch-src-hsetroot.c
new file mode 100644
index 0000000..3057899
--- /dev/null
+++ b/graphics/hsetroot/files/patch-src-hsetroot.c
@@ -0,0 +1,18 @@
+--- src/hsetroot.c.bak Sun Nov 30 19:39:51 2003
++++ src/hsetroot.c Sun Nov 30 19:37:08 2003
+@@ -179,11 +179,13 @@
+ if (alpha < 255)
+ {
+ // Create alpha-override mask
+- imlib_image_set_has_alpha (1);
+ Imlib_Color_Modifier modifier = imlib_create_color_modifier ();
++ DATA8 red[256], green[256], blue[256], alph[256];
++
++
++ imlib_image_set_has_alpha (1);
+ imlib_context_set_color_modifier (modifier);
+
+- DATA8 red[256], green[256], blue[256], alph[256];
+ imlib_get_color_modifier_tables (red, green, blue, alph);
+ for (o = 0; o < 256; o++)
+ alph[o] = (DATA8) alpha;
OpenPOWER on IntegriCloud