--- rxvt-unicode/src/rxvtimg.C 2012/06/15 18:36:26 1.95 +++ rxvt-unicode/src/rxvtimg.C 2012/06/17 17:06:47 1.97 @@ -1,3 +1,26 @@ +/*----------------------------------------------------------------------* + * File: rxvtimg.C + *----------------------------------------------------------------------* + * + * All portions of code are copyright by their respective author/s. + * Copyright (c) 2012 Marc Lehmann + * Copyright (c) 2012 Emanuele Giaquinta + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + *---------------------------------------------------------------------*/ + #include #include #include "../config.h" @@ -295,7 +318,7 @@ uint8_t b = *src++; uint32_t v = (255 << 24) | (r << 16) | (g << 8) | b; - + if (ecb_big_endian () ? !byte_order_mismatch : byte_order_mismatch) v = ecb_bswap32 (v); @@ -428,7 +451,7 @@ Picture src = picture (); Picture dst = XRenderCreatePicture (dpy, img->pm, img->format, 0, 0); - + XRenderComposite (dpy, PictOpSrc, src, None, dst, 0, 0, 0, 0, 0, 0, w, h); XRenderFreePicture (dpy, src); @@ -646,7 +669,7 @@ Picture src = img->picture (); Picture dst = picture (); Picture mask_p = 0; - + if (mask != 1.) { mask_p = create_xrender_mask (dpy, img->pm, False, False); @@ -687,7 +710,7 @@ Picture src = picture (); Picture dst = XRenderCreatePicture (dpy, img->pm, img->format, 0, 0); - + if (alpha) { XRenderColor rc = { 0, 0, 0, 0 };