aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32
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
commit8822e0ed1db342bf1947004c660a9c8649ce35c0 (patch)
tree8756ea3c36f8319354419f0aa2d48fbf9b18eac6 /win32
parent1edfa1eaef9301aeffe31253cfc06709d4d8aae0 (diff)
downloadscintilla-mirror-8822e0ed1db342bf1947004c660a9c8649ce35c0.tar.gz
Backport: Use ColourDesired constructor explicitly to make more obvious.
Constructor not marked explicit as may be used in external platform layers. Backport of changeset 6706:73c8bc321f62.
Diffstat (limited to 'win32')
-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() {