aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2010-06-26 00:06:06 +0000
committernyamatongwe <devnull@localhost>2010-06-26 00:06:06 +0000
commit2956e6259b63bbe72db92286a4a3e16d63ebfac5 (patch)
tree5097de29737b961504a33797915d900769c3f787
parente567a0d1f146f412a14709e84420334f7febfbcd (diff)
downloadscintilla-mirror-2956e6259b63bbe72db92286a4a3e16d63ebfac5.tar.gz
Fix for bug #3021473, indicator fill alpha capped at 100.
-rw-r--r--doc/ScintillaDoc.html4
-rw-r--r--macosx/PlatMacOSX.cxx2
-rw-r--r--src/Editor.cxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html
index c57493fe2..c5f713b35 100644
--- a/doc/ScintillaDoc.html
+++ b/doc/ScintillaDoc.html
@@ -38,7 +38,7 @@
<h1>Scintilla Documentation</h1>
- <p>Last edited 4/April/2010 NH</p>
+ <p>Last edited 26/June/2010 NH</p>
<p>There is <a class="jump" href="Design.html">an overview of the internal design of
Scintilla</a>.<br />
@@ -3616,7 +3616,7 @@ struct Sci_TextToFind {
<b id="SCI_INDICGETALPHA">SCI_INDICGETALPHA(int indicatorNumber)</b><br />
These two messages set and get the alpha transparency used for drawing the
fill color of the INDIC_ROUNDBOX rectangle. The alpha value can range from
- 0 (completely transparent) to 100 (no transparency).
+ 0 (completely transparent) to 255 (no transparency).
</p>
<p><b id="SCI_INDICSETUNDER">SCI_INDICSETUNDER(int indicatorNumber, bool under)</b><br />
diff --git a/macosx/PlatMacOSX.cxx b/macosx/PlatMacOSX.cxx
index d16913d78..8392b97cf 100644
--- a/macosx/PlatMacOSX.cxx
+++ b/macosx/PlatMacOSX.cxx
@@ -475,7 +475,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 );
}
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 2bc6580cc..69c83f388 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -7963,7 +7963,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
return (wParam <= INDIC_MAX) ? vs.indicators[wParam].under : 0;
case SCI_INDICSETALPHA:
- if (wParam <= INDIC_MAX && lParam >=0 && lParam <= 100) {
+ if (wParam <= INDIC_MAX && lParam >=0 && lParam <= 255) {
vs.indicators[wParam].fillAlpha = lParam;
InvalidateStyleRedraw();
}