Commit 7befe958 authored by sail@chromium.org's avatar sail@chromium.org

Fix glitch in title fading code

Green or blue tab titles would draw incorrectly.

The problem was a typo in my drawing code that swapped the blue and green values.

BUG=82233
TEST=Ran and verified that the tab title color were correct.
Review URL: http://codereview.chromium.org/6990053

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86380 0039d316-1c4b-4281-b951-d872f2087c98
parent c4e7e0ca
......@@ -214,7 +214,7 @@ void DrawTextAndClearBackground(skia::BitmapPlatformDevice& bmp_device,
// on a white background the luminosity must be inverted.
BYTE alpha = 0xFF - color_utils::GetLuminanceForColor(color);
*bmp.getAddr32(x, y) = SkPreMultiplyColor(
SkColorSetARGB(alpha, text_color_r, text_color_b, text_color_g));
SkColorSetARGB(alpha, text_color_r, text_color_g, text_color_b));
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment