Commit 4edae2b5 authored by mrowe@apple.com's avatar mrowe@apple.com

2007-12-17 Mark Rowe <mrowe@apple.com>

        Reviewed by Darin Adler.

        Fix incorrect array size and incorrect array index in convertNSColorToColor.

        * rendering/RenderThemeMac.mm:
        (WebCore::convertNSColorToColor):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@28812 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 866a57dc
2007-12-17 Mark Rowe <mrowe@apple.com>
Reviewed by Darin Adler.
Fix incorrect array size and incorrect array index in convertNSColorToColor.
* rendering/RenderThemeMac.mm:
(WebCore::convertNSColorToColor):
2007-12-17 Darin Adler <darin@apple.com>
Reviewed by Mark Rowe.
......
......@@ -226,12 +226,12 @@ static RGBA32 convertNSColorToColor(NSColor *color)
[color drawSwatchInRect:NSMakeRect(0, 0, 1, 1)];
[NSGraphicsContext restoreGraphicsState];
NSUInteger pixel[3];
NSUInteger pixel[4];
[offscreenRep getPixel:pixel atX:0 y:0];
[offscreenRep release];
return makeRGB(pixel[0], pixel[1], pixel[3]);
return makeRGB(pixel[0], pixel[1], pixel[2]);
}
void RenderThemeMac::platformColorsDidChange()
......
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