freebsd-ports/graphics/hsetroot/files/patch-src-hsetroot.c
Pav Lucistnik b3b50f7af3 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>
2003-12-05 08:52:56 +00:00

18 lines
622 B
C

--- 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;