diff options
Diffstat (limited to 'pixman/pixman-combine.h.template')
-rw-r--r-- | pixman/pixman-combine.h.template | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pixman/pixman-combine.h.template b/pixman/pixman-combine.h.template index 53afcd2..20f784b 100644 --- a/pixman/pixman-combine.h.template +++ b/pixman/pixman-combine.h.template @@ -28,7 +28,7 @@ ((t) = (a) * (comp2_t)(b) + ONE_HALF, ((((t) >> G_SHIFT ) + (t) ) >> G_SHIFT )) #define DIV_UNc(a, b) \ - (((comp2_t) (a) * MASK) / (b)) + (((comp2_t) (a) * MASK + ((b) / 2)) / (b)) #define ADD_UNc(x, y, t) \ ((t) = (x) + (y), \ |