aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-04-19 17:26:14 +1000
committerNeil <nyamatongwe@gmail.com>2018-04-19 17:26:14 +1000
commitc4025b67d3afa0de81d6f6360a8d7a49bf1406c9 (patch)
tree3e214b300104359ab0317b84b5be5a1a50119be0 /win32/PlatWin.cxx
parenta29a92c614ae03f4058f0e63899350d83c43d670 (diff)
downloadscintilla-mirror-c4025b67d3afa0de81d6f6360a8d7a49bf1406c9.tar.gz
Use ColourDesired constructor explicitly to make more obvious.
Constructor not marked explicit as may be used in external platform layers.
Diffstat (limited to 'win32/PlatWin.cxx')
-rw-r--r--win32/PlatWin.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx
index 90433201e..8e06b7f4c 100644
--- a/win32/PlatWin.cxx
+++ b/win32/PlatWin.cxx
@@ -666,7 +666,7 @@ void SurfaceGDI::BrushColor(ColourDesired back) {
brushOld = 0;
}
// Only ever want pure, non-dithered brushes
- ColourDesired colourNearest = ::GetNearestColor(hdc, back.AsLong());
+ ColourDesired colourNearest = ColourDesired(::GetNearestColor(hdc, back.AsLong()));
brush = ::CreateSolidBrush(colourNearest.AsLong());
brushOld = static_cast<HBRUSH>(::SelectObject(hdc, brush));
}
@@ -2987,11 +2987,11 @@ DynamicLibrary *DynamicLibrary::Load(const char *modulePath) {
}
ColourDesired Platform::Chrome() {
- return ::GetSysColor(COLOR_3DFACE);
+ return ColourDesired(::GetSysColor(COLOR_3DFACE));
}
ColourDesired Platform::ChromeHighlight() {
- return ::GetSysColor(COLOR_3DHIGHLIGHT);
+ return ColourDesired(::GetSysColor(COLOR_3DHIGHLIGHT));
}
const char *Platform::DefaultFont() {