Closed Bug 749438 Opened 12 years ago Closed 12 years ago

fix color conversion in ScreenshotLayer.updateBackground

Categories

(Firefox for Android Graveyard :: General, defect)

ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 749630

People

(Reporter: microrffr, Unassigned)

Details

microrffr... it seems like your report got chopped before you finished it.  Can you repeat what the issue is please?
This was fixed with bug 749630.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
For the record, the problem microrffr was pointing out was that this code:

-        int red =   ((color & 0x00FF0000 >> 16)* 31 / 255);
-        int green = ((color & 0x0000FF00 >> 8) * 63 / 255);
-        int blue =   (color & 0x000000FF) * 31 / 255;

does a bitwise-and and a bitshift without indicating precedence by using parentheses. "color & 0x00FF0000 >> 16" evaluates the >> first, resulting in "color & 0x000000FF" instead of "(color & 0x00FF0000) >> 16" as intended.

This code was removed by :Cwiiis as part of the bug mentioned above.
oops my bad

:kats's description is accurate.
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.