diff options
author | Neil <nyamatongwe@gmail.com> | 2018-05-14 13:57:03 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-05-14 13:57:03 +1000 |
commit | 7a4fd484cc8229d3518039c82d950b4fa7f673cb (patch) | |
tree | 56eb3385ec0c7da13691236af5c9b1d78b851b22 /src/ScintillaBase.cxx | |
parent | 8e94953b2d9f7d946445759fe31d169879b680c8 (diff) | |
download | scintilla-mirror-7a4fd484cc8229d3518039c82d950b4fa7f673cb.tar.gz |
Backport: Modernize Platform.h (2) - noexcept, const, constexpr.
ColourDesired is an int instead of long for consistency over different platforms.
Changes made to Point, PRectangle, and ColourDesired.
RoundXYPosition removed.
Backport of changeset 6939:7441dcb96e6a.
Diffstat (limited to 'src/ScintillaBase.cxx')
-rw-r--r-- | src/ScintillaBase.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index 2dbca55d7..9a36412ed 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -1012,19 +1012,19 @@ sptr_t ScintillaBase::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lPara break; case SCI_CALLTIPSETBACK: - ct.colourBG = ColourDesired(static_cast<long>(wParam)); + ct.colourBG = ColourDesired(static_cast<int>(wParam)); vs.styles[STYLE_CALLTIP].back = ct.colourBG; InvalidateStyleRedraw(); break; case SCI_CALLTIPSETFORE: - ct.colourUnSel = ColourDesired(static_cast<long>(wParam)); + ct.colourUnSel = ColourDesired(static_cast<int>(wParam)); vs.styles[STYLE_CALLTIP].fore = ct.colourUnSel; InvalidateStyleRedraw(); break; case SCI_CALLTIPSETFOREHLT: - ct.colourSel = ColourDesired(static_cast<long>(wParam)); + ct.colourSel = ColourDesired(static_cast<int>(wParam)); InvalidateStyleRedraw(); break; |