* fix a warning in the wonderbrush translator which I think indicates an actual
problem (since + binds stronger than >>) Stephan: please review, esp since I don't know how to test this! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38279 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -78,7 +78,7 @@ Layer::Compose(const BBitmap* into, BRect area)
|
|||||||
for (int32 x = left; x <= right; x++) {
|
for (int32 x = left; x <= right; x++) {
|
||||||
if (srcHandle[3] > 0) {
|
if (srcHandle[3] > 0) {
|
||||||
uint8 c1 = dstHandle[0] * srcHandle[0] >> 8;
|
uint8 c1 = dstHandle[0] * srcHandle[0] >> 8;
|
||||||
c1 = c1 + dstHandle[0] * (
|
c1 += dstHandle[0] * (
|
||||||
255 - (
|
255 - (
|
||||||
(255 - dstHandle[0])
|
(255 - dstHandle[0])
|
||||||
* (255 - srcHandle[0])
|
* (255 - srcHandle[0])
|
||||||
@@ -90,7 +90,7 @@ Layer::Compose(const BBitmap* into, BRect area)
|
|||||||
) >> 8;
|
) >> 8;
|
||||||
|
|
||||||
uint8 c2 = dstHandle[1] * srcHandle[1] >> 8;
|
uint8 c2 = dstHandle[1] * srcHandle[1] >> 8;
|
||||||
c2 = c2 + dstHandle[1] * (
|
c2 += dstHandle[1] * (
|
||||||
255 - (
|
255 - (
|
||||||
(255 - dstHandle[1])
|
(255 - dstHandle[1])
|
||||||
* (255 - srcHandle[1])
|
* (255 - srcHandle[1])
|
||||||
@@ -102,7 +102,7 @@ Layer::Compose(const BBitmap* into, BRect area)
|
|||||||
) >> 8;
|
) >> 8;
|
||||||
|
|
||||||
uint8 c3 = dstHandle[2] * srcHandle[2] >> 8;
|
uint8 c3 = dstHandle[2] * srcHandle[2] >> 8;
|
||||||
c3 = c3 + dstHandle[2] * (
|
c3 += dstHandle[2] * (
|
||||||
255 - (
|
255 - (
|
||||||
(255 - dstHandle[2])
|
(255 - dstHandle[2])
|
||||||
* (255 - srcHandle[2])
|
* (255 - srcHandle[2])
|
||||||
|
|||||||
Reference in New Issue
Block a user