Closed
Bug 749438
Opened 12 years ago
Closed 12 years ago
fix color conversion in ScreenshotLayer.updateBackground
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 749630
People
(Reporter: microrffr, Unassigned)
Details
http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/gfx/ScreenshotLayer.java#179 shifting happening before bitwise and
microrffr... it seems like your report got chopped before you finished it. Can you repeat what the issue is please?
Comment 2•12 years ago
|
||
This was fixed with bug 749630.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Comment 3•12 years ago
|
||
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.
Assignee | ||
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•