diff options
author | Marko Njezic <unknown> | 2011-07-25 21:01:10 +0200 |
---|---|---|
committer | Marko Njezic <unknown> | 2011-07-25 21:01:10 +0200 |
commit | 7f3f6d59fb78a33283edd730bb981adf80007b1e (patch) | |
tree | 03addee195bf7ea882e53789871d62966bf29ca0 /src | |
parent | 13e32d00598bf793dc4a62fd38f4d42162ff216c (diff) | |
download | scintilla-mirror-7f3f6d59fb78a33283edd730bb981adf80007b1e.tar.gz |
Properly override background color when using alpha blended selections.
Bug #3377116.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index a94089e9f..452666be7 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -2391,10 +2391,12 @@ ColourAllocated Editor::TextBackground(ViewStyle &vsDraw, bool overrideBackgroun return vsDraw.edgecolour.allocated; if (inHotspot && vsDraw.hotspotBackgroundSet) return vsDraw.hotspotBackground.allocated; - if (overrideBackground && (styleMain != STYLE_BRACELIGHT) && (styleMain != STYLE_BRACEBAD)) - return background; } - return vsDraw.styles[styleMain].back.allocated; + if (overrideBackground && (styleMain != STYLE_BRACELIGHT) && (styleMain != STYLE_BRACEBAD)) { + return background; + } else { + return vsDraw.styles[styleMain].back.allocated; + } } void Editor::DrawIndentGuide(Surface *surface, int lineVisible, int lineHeight, int start, PRectangle rcSegment, bool highlight) { |