aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-06-09 12:15:05 +1000
committerNeil <nyamatongwe@gmail.com>2021-06-09 12:15:05 +1000
commitb5e8caaacbd47583c79bf862e5e6a021bcfc3964 (patch)
tree885ceb140cda8f9721ddeb3a327c5a51e27e3785 /win32/PlatWin.cxx
parent5f998b68113dd116c1e938028dddcbcc7425a144 (diff)
downloadscintilla-mirror-b5e8caaacbd47583c79bf862e5e6a021bcfc3964.tar.gz
Reduce casts by defining methods for common conversions.
Diffstat (limited to 'win32/PlatWin.cxx')
-rw-r--r--win32/PlatWin.cxx4
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() {