opnsense-ports/graphics/hsetroot/files/patch-src-hsetroot.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01: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;