aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32
diff options
context:
space:
mode:
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() {