projects
/
platform
/
upstream
/
pixman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2401254
)
Use memcpy() in fbCombineSrcU when there is no mask
author
Søren Sandmann Pedersen
<sandmann@redhat.com>
Fri, 1 May 2009 04:58:38 +0000
(
00:58
-0400)
committer
Søren Sandmann Pedersen
<sandmann@redhat.com>
Mon, 4 May 2009 22:55:06 +0000
(18:55 -0400)
pixman/combine.inc
patch
|
blob
|
history
diff --git
a/pixman/combine.inc
b/pixman/combine.inc
index
8c0955a
..
c1624ac
100644
(file)
--- a/
pixman/combine.inc
+++ b/
pixman/combine.inc
@@
-62,11
+62,16
@@
fbCombineSrcU (comp4_t *dest, const comp4_t *src, const comp4_t *mask, int width
{
int i;
- for (i = 0; i < width; ++i)
+ if (!mask)
+ memcpy (dest, src, width * sizeof (comp4_t));
+ else
{
- comp4_t s = combineMask (src, mask, i);
-
- *(dest + i) = s;
+ for (i = 0; i < width; ++i)
+ {
+ comp4_t s = combineMask (src, mask, i);
+
+ *(dest + i) = s;
+ }
}
}