From b07b2f9affaeda4949f4aa61875e2b66eafc2f87 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 28 Feb 2011 12:00:38 +1100 Subject: Copy of change 3284 for macosx platform: maximum alpha is 255, not 100. --- cocoa/PlatCocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm index 259387846..7dfb60169 100644 --- a/cocoa/PlatCocoa.mm +++ b/cocoa/PlatCocoa.mm @@ -626,7 +626,7 @@ void Scintilla::SurfaceImpl::AlphaRectangle(PRectangle rc, int /*cornerSize*/, C ColourDesired colour( fill.AsLong() ); // Set the Fill color to match - CGContextSetRGBFillColor( gc, colour.GetRed() / 255.0, colour.GetGreen() / 255.0, colour.GetBlue() / 255.0, alphaFill / 100.0 ); + CGContextSetRGBFillColor( gc, colour.GetRed() / 255.0, colour.GetGreen() / 255.0, colour.GetBlue() / 255.0, alphaFill / 255.0 ); CGRect rect = PRectangleToCGRect( rc ); CGContextFillRect( gc, rect ); } -- cgit v1.2.3