summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTilman Sauerbeck <tilman@code-monkey.de>2006-09-28 18:39:20 +0200
committerTilman Sauerbeck <tilman@code-monkey.de>2006-09-28 18:39:20 +0200
commit2fc0ebfbe850c138e840b6653ed1476623aa04a4 (patch)
tree22289a67970e2fb5e59ffd9cca8601084d268d13 /src
parentddd93ae96c5427d4c8d03eb225b66a1a93fa2bc8 (diff)
Make the DUALSTAGE0 code slightly easier to read.
Diffstat (limited to 'src')
-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).