aboutsummaryrefslogtreecommitdiff
path: root/graphics/hsetroot/files/patch-src-hsetroot.c
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/hsetroot/files/patch-src-hsetroot.c')
-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 000000000000..3057899de698
--- /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;