diff options
author | Neil <nyamatongwe@gmail.com> | 2021-06-09 12:15:05 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-06-09 12:15:05 +1000 |
commit | b5e8caaacbd47583c79bf862e5e6a021bcfc3964 (patch) | |
tree | 885ceb140cda8f9721ddeb3a327c5a51e27e3785 /win32/PlatWin.cxx | |
parent | 5f998b68113dd116c1e938028dddcbcc7425a144 (diff) | |
download | scintilla-mirror-b5e8caaacbd47583c79bf862e5e6a021bcfc3964.tar.gz |
Reduce casts by defining methods for common conversions.
Diffstat (limited to 'win32/PlatWin.cxx')
-rw-r--r-- | win32/PlatWin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index ae0161f84..371edc957 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -3815,11 +3815,11 @@ void Menu::Show(Point pt, const Window &w) { } ColourRGBA Platform::Chrome() { - return ColourRGBA::FromRGB(::GetSysColor(COLOR_3DFACE)); + return ColourRGBA::FromRGB(static_cast<int>(::GetSysColor(COLOR_3DFACE))); } ColourRGBA Platform::ChromeHighlight() { - return ColourRGBA::FromRGB(::GetSysColor(COLOR_3DHIGHLIGHT)); + return ColourRGBA::FromRGB(static_cast<int>(::GetSysColor(COLOR_3DHIGHLIGHT))); } const char *Platform::DefaultFont() { |