X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=render%2Frender.c;h=5b6cb95feddddb43b0c5f0b0957b9028c6b1f238;hb=005eb35ee810fbc1edc31a83f298866067be6ef9;hp=1f4a2bb1228ed452d6866d7aca1bcf652ecc9cee;hpb=95222014e29d5b49b6211f8556deb0d5001c87b6;p=chaz%2Fopenbox diff --git a/render/render.c b/render/render.c index 1f4a2bb1..5b6cb95f 100644 --- a/render/render.c +++ b/render/render.c @@ -48,7 +48,7 @@ void RrPaint(RrAppearance *a, Window win, gint w, gint h) if (w <= 0 || h <= 0) return; if (a->surface.parentx < 0 || a->surface.parenty < 0) { - ob_debug("Invalid parent co-ordinates\n"); + /* ob_debug("Invalid parent co-ordinates\n"); */ return; } resized = (a->w != w || a->h != h); @@ -375,9 +375,9 @@ void RrMinsize(RrAppearance *a, gint *w, gint *h) static void reverse_bits(gchar *c, gint n) { gint i; - for (i = 0; i < n; i++) - *c++ = (((*c * 0x0802UL & 0x22110UL) | - (*c * 0x8020UL & 0x88440UL)) * 0x10101UL) >> 16; + for (i = 0; i < n; i++, *c++) + *c = (((*c * 0x0802UL & 0x22110UL) | + (*c * 0x8020UL & 0x88440UL)) * 0x10101UL) >> 16; } gboolean RrPixmapToRGBA(const RrInstance *inst,