diff options
| author | nyamatongwe <unknown> | 2010-06-26 00:06:06 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2010-06-26 00:06:06 +0000 | 
| commit | 33af0cdef8e363d1c68e3658169b5870e7b44503 (patch) | |
| tree | 5097de29737b961504a33797915d900769c3f787 | |
| parent | c9672172dc7d26fb18098976863e83dd60e46760 (diff) | |
| download | scintilla-mirror-33af0cdef8e363d1c68e3658169b5870e7b44503.tar.gz | |
Fix for bug #3021473, indicator fill alpha capped at 100.
| -rw-r--r-- | doc/ScintillaDoc.html | 4 | ||||
| -rw-r--r-- | macosx/PlatMacOSX.cxx | 2 | ||||
| -rw-r--r-- | src/Editor.cxx | 2 | 
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();  		} | 
