aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-02-28 12:00:38 +1100
committernyamatongwe <devnull@localhost>2011-02-28 12:00:38 +1100
commitb07b2f9affaeda4949f4aa61875e2b66eafc2f87 (patch)
tree17aa444720be867a3ea93293ce040b5807c288dc
parent8c0f2f58650bff41b3a7a48a09dc61247b8056b4 (diff)
downloadscintilla-mirror-b07b2f9affaeda4949f4aa61875e2b66eafc2f87.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 );
}