From 2956e6259b63bbe72db92286a4a3e16d63ebfac5 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 26 Jun 2010 00:06:06 +0000 Subject: Fix for bug #3021473, indicator fill alpha capped at 100. --- doc/ScintillaDoc.html | 4 ++-- macosx/PlatMacOSX.cxx | 2 +- 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 @@

Scintilla Documentation

-

Last edited 4/April/2010 NH

+

Last edited 26/June/2010 NH

There is an overview of the internal design of Scintilla.
@@ -3616,7 +3616,7 @@ struct Sci_TextToFind { SCI_INDICGETALPHA(int indicatorNumber)
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).

SCI_INDICSETUNDER(int indicatorNumber, bool under)
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(); } -- cgit v1.2.3