From: Carl Worth Date: Wed, 23 Jan 2008 00:33:58 +0000 (-0800) Subject: A tiny amount of ifdef reduction. X-Git-Tag: 1.0_branch~1403 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e4d482a6bb766f50f49ba81591ca7c26ba3ce047;p=profile%2Fivi%2Fpixman.git A tiny amount of ifdef reduction. Just moving two common assignments outside the condition to drop the #else part. --- diff --git a/pixman/pixman-edge-imp.h b/pixman/pixman-edge-imp.h index 0982a46..016bfab 100644 --- a/pixman/pixman-edge-imp.h +++ b/pixman/pixman-edge-imp.h @@ -45,15 +45,14 @@ rasterizeEdges (pixman_image_t *image, int lxi; int rxi; + lx = l->x; + rx = r->x; #if N_BITS == 1 /* For the non-antialiased case, round the coordinates up, in effect * sampling the center of the pixel. (The AA case does a similar * adjustment in RenderSamplesX) */ - lx = l->x + X_FRAC_FIRST(1); - rx = r->x + X_FRAC_FIRST(1); -#else - lx = l->x; - rx = r->x; + lx += X_FRAC_FIRST(1); + rx += X_FRAC_FIRST(1); #endif /* clip X */ if (lx < 0)