aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2011-02-28 12:00:38 +1100
committernyamatongwe <unknown>2011-02-28 12:00:38 +1100
commit8d82603ee89b3651953704b30dbcbe288eb728f8 (patch)
treef9b6aa51de240f7cadb341f6c204deb0c610b0bd
parent3745d8fc50d933c303f7bbd5f2fb5ea071f706f5 (diff)
downloadscintilla-mirror-8d82603ee89b3651953704b30dbcbe288eb728f8.tar.gz
Copy of change 3284 for macosx platform: maximum alpha is 255, not 100.
-rw-r--r--cocoa/PlatCocoa.mm2
1 files changed, 1 insertions, 1 deletions
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 );
}