From ca2c1f900d81284f64047c6702e7733c9a9f29cd Mon Sep 17 00:00:00 2001 From: "Carlos R. Mafra" Date: Mon, 14 Sep 2009 22:00:58 +0200 Subject: [PATCH] Trivial coding style fix --- WINGs/wwindow.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/WINGs/wwindow.c b/WINGs/wwindow.c index 3bd0afea..fd364d54 100644 --- a/WINGs/wwindow.c +++ b/WINGs/wwindow.c @@ -213,7 +213,7 @@ static void setMiniwindowTitle(WMWindow * win, const char *title) PropModeReplace, (unsigned char *)title, strlen(title)); } -static void setMiniwindow(WMWindow * win, RImage * image) +static void setMiniwindow(WMWindow *win, RImage *image) { WMScreen *scr = win->view->screen; CARD32 *data; @@ -235,15 +235,11 @@ static void setMiniwindow(WMWindow * win, RImage * image) int offs = (x + y * image->width); if (image->format == RRGBFormat) - pixel = - image->data[offs * 3] << 16 | image->data[offs * 3 + - 1] << 8 | image->data[offs * 3 + 2]; + pixel = image->data[offs * 3] << 16 | image->data[offs * 3 + 1] << 8 + | image->data[offs * 3 + 2]; else - pixel = - image->data[offs * 4] << 16 | image->data[offs * 4 + - 1] << 8 | image->data[offs * 4 + - 2] | image-> - data[offs * 4 + 3] << 24; + pixel = image->data[offs * 4] << 16 | image->data[offs * 4 + 1] << 8 + | image->data[offs * 4 + 2] | image->data[offs * 4 + 3] << 24; data[o++] = pixel; } -- 2.11.4.GIT