strncpy (str, geom, n);
str[n] = '\0';
- if (strcmp(str, "auto") == 0)
+ if (strcmp(str, "auto") == 0)
{
- if (!bgpixmap->auto_resize)
+ if (!bgpixmap->auto_resize)
changed++;
- bgpixmap->auto_resize = True ;
- w = szHint.width ;
+ bgpixmap->auto_resize = True ;
+ w = szHint.width ;
h = szHint.height ;
flags = WidthValue|HeightValue ;
}
else
{
- bgpixmap->auto_resize = False ;
+ bgpixmap->auto_resize = False ;
flags = XParseGeometry (str, &x, &y, &w, &h);
}
unsigned int xpmh = xpmAttr.height,
xpmw = xpmAttr.width;
- if (bgPixmap.auto_resize)
+ if (bgPixmap.auto_resize)
{
- w = szHint.width ;
+ w = szHint.width ;
h = szHint.height ;
- }
+ }
/*
* don't zoom pixmap too much nor expand really small pixmaps
*/
#endif
{
ASImage *scaled_im = scale_asimage (asv, original_asim, w, h, ASA_XImage, 0, ASIMAGE_QUALITY_DEFAULT);
- if (scaled_im)
+ if (scaled_im)
{
pixmap = asimage2pixmap(asv, display->root, scaled_im, gc, True);
destroy_asimage (&scaled_im);
/* XGetWindowAttributes (dpy, vt, &attr); */
#ifdef HAVE_AFTERIMAGE
- if (asimman == NULL)
- asimman = create_generic_imageman(rs[Rs_path]);
+ if (asimman == NULL)
+ asimman = create_generic_imageman(rs[Rs_path]);
if ((f = strchr (file, ';')) == NULL)
- original_asim = get_asimage( asimman, file, 0xFFFFFFFF, 100 );
+ original_asim = get_asimage( asimman, file, 0xFFFFFFFF, 100 );
else
{
size_t len = f - file;
f = (char *)malloc (len + 1);
strncpy (f, file, len);
f[len] = '\0';
- original_asim = get_asimage( asimman, f, 0xFFFFFFFF, 100 );
+ original_asim = get_asimage( asimman, f, 0xFFFFFFFF, 100 );
free( f );
}
if (original_asim)
{
bgPixmap.pixmap = asimage2pixmap (asv, display->root, original_asim, NULL, True);
- xpmAttr.width = original_asim->width ;
- xpmAttr.height = original_asim->height ;
+ xpmAttr.width = original_asim->width ;
+ xpmAttr.height = original_asim->height ;
}
#else /* HAVE_AFTERIMAGE */
xpmAttr.closeness = 30000;
0, 0, &sx, &sy, &cr);
/* check if we are outside of the visible part of the virtual screen : */
- if( sx + (int)szHint.width <= 0 || sy + (int)szHint.height <= 0
- || sx >= wrootattr.width || sy >= wrootattr.height )
+ if( sx + (int)szHint.width <= 0 || sy + (int)szHint.height <= 0
+ || sx >= wrootattr.width || sy >= wrootattr.height )
return /* 0 */ ;
/*
* Make the frame window set by the window manager have
ARGB32 tint;
if (get_dpy_drawable_size (dpy, rootpixmap, &pmap_w, &pmap_h))
- {
+ {
int root_x = 0, root_y = 0;
-
+
shade.shading = rs[Rs_shade] ? atoi (rs[Rs_shade]) : 100;
if (ISSET_PIXCOLOR (Color_tint))
{
rgba c;
pix_colors_focused [Color_tint].get (c);
- shade.tintColor.red = c.r;
+ shade.tintColor.red = c.r;
shade.tintColor.green = c.g;
shade.tintColor.blue = c.b;
}
back_##xy = 0; \
back_##wh = pmap_##wh; \
}}while(0)
-
+
MAKE_ROOTPMAP_GEOM(x,w,width);
MAKE_ROOTPMAP_GEOM(y,h,height);
XDestroyImage (image);
success = True;
}
-#endif
+#endif
}
allowedxerror = 0;
}
#endif /* HAVE_AFTERIMAGE */
- if (gc != NULL)
+ if (gc != NULL)
XFreeGC (dpy, gc);
if (!success)