From: sf-exg Date: Sat, 30 Jan 2010 20:52:36 +0000 (+0000) Subject: Fix coding style. X-Git-Url: http://git.openbox.org/?p=dana%2Furxvt.git;a=commitdiff_plain;h=15b2ff2cece1a6e830848d508aa210d720acc4e1 Fix coding style. --- diff --git a/src/background.C b/src/background.C index a660d32..3054446 100644 --- a/src/background.C +++ b/src/background.C @@ -497,7 +497,7 @@ bgPixmap_t::render_asim (ASImage *background, ARGB32 background_tint) if (background_tint != TINT_LEAVE_SAME) { - ASImage* tmp = tile_asimage (target->asv, background, 0, 0, + ASImage *tmp = tile_asimage (target->asv, background, 0, 0, target_width, target_height, background_tint, ASA_XImage, 100, ASIMAGE_QUALITY_DEFAULT); if (tmp) @@ -1110,7 +1110,7 @@ bgPixmap_t::set_root_pixmap () # endif /* ENABLE_TRANSPARENCY */ # ifndef HAVE_AFTERIMAGE -static void ShadeXImage(rxvt_term *term, XImage* srcImage, int shade, int rm, int gm, int bm); +static void ShadeXImage(rxvt_term *term, XImage *srcImage, int shade, int rm, int gm, int bm); # endif bool @@ -1167,7 +1167,7 @@ bgPixmap_t::render () if (!(background_flags & transpPmapBlured) && (flags & blurNeeded) && background != NULL) { - ASImage* tmp = blur_asimage_gauss (target->asv, background, h_blurRadius, v_blurRadius, 0xFFFFFFFF, + ASImage *tmp = blur_asimage_gauss (target->asv, background, h_blurRadius, v_blurRadius, 0xFFFFFFFF, (original_asim == NULL || tint == TINT_LEAVE_SAME)?ASA_XImage:ASA_ASImage, 100, ASIMAGE_QUALITY_DEFAULT); if (tmp) @@ -1348,7 +1348,7 @@ bgPixmap_t::apply () typedef uint32_t RUINT32T; static void -ShadeXImage(rxvt_term *term, XImage* srcImage, int shade, int rm, int gm, int bm) +ShadeXImage(rxvt_term *term, XImage *srcImage, int shade, int rm, int gm, int bm) { int sh_r, sh_g, sh_b; RUINT32T mask_r, mask_g, mask_b; diff --git a/src/init.C b/src/init.C index 9af7bae..a476a51 100644 --- a/src/init.C +++ b/src/init.C @@ -1160,7 +1160,7 @@ rxvt_term::create_windows (int argc, const char *const *argv) { int w = im->width; int h = im->height; - long* buffer = (long *)malloc ((2 + w * h) * sizeof (long)); + long *buffer = (long *)malloc ((2 + w * h) * sizeof (long)); ASImage *result = scale_asimage (asv, im, w, h, ASA_ARGB32, 100, ASIMAGE_QUALITY_DEFAULT); @@ -1177,7 +1177,7 @@ rxvt_term::create_windows (int argc, const char *const *argv) destroy_asimage (&result); XChangeProperty (dpy, top, xa[XA_NET_WM_ICON], XA_CARDINAL, 32, - PropModeReplace, (const unsigned char*) buffer, 2 + w * h); + PropModeReplace, (const unsigned char *) buffer, 2 + w * h); free (buffer); } else