pkgsrc/x11/hsetroot/patches/patch-aa

20 lines
729 B
Text
Raw Normal View History

$NetBSD: patch-aa,v 1.1 2005/07/25 03:14:09 kristerw Exp $
--- src/hsetroot.c.orig Mon Jul 25 04:56:26 2005
+++ src/hsetroot.c Mon Jul 25 04:57:46 2005
@@ -179,11 +179,12 @@
if (alpha < 255)
{
// Create alpha-override mask
+ Imlib_Color_Modifier modifier;
+ DATA8 red[256], green[256], blue[256], alph[256];
imlib_image_set_has_alpha (1);
- Imlib_Color_Modifier modifier = imlib_create_color_modifier ();
+ modifier = imlib_create_color_modifier ();
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;