summaryrefslogtreecommitdiff
path: root/src/mga_exa.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mga_exa.c')
-rw-r--r--src/mga_exa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mga_exa.c b/src/mga_exa.c
index ea2feb4..3242ea8 100644
--- a/src/mga_exa.c
+++ b/src/mga_exa.c
@@ -549,10 +549,10 @@ mgaPrepareComposite(int op, PicturePtr pSrcPict, PicturePtr pMaskPict,
ds0 |= C_ARG2_FCOL | COLOR_ARG2; /* C = 0xff */
} else if (pDstPict->format == PICT_a8)
ds0 |= C_ARG1_ALPHA | COLOR_ARG1; /* C = As */
- else if (pSrcPict->format != PICT_a8)
- ds0 |= C_ARG1_CUR | COLOR_ARG1; /* C = Cs */
- else
+ else if (pSrcPict->format == PICT_a8)
ds0 |= C_ARG2_FCOL | COLOR_ARG2; /* C = 0 */
+ else
+ ds0 |= C_ARG1_CUR | COLOR_ARG1; /* C = Cs */
/* If the source texture has an alpha channel, use it.
* Otherwise, set the alpha channel to 0xff (see FCOL setting above).