aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2020-07-11 12:47:28 +1000
committerNeil <nyamatongwe@gmail.com>2020-07-11 12:47:28 +1000
commit1ae67dcdc8685a4c6c90ba99b54eb8d3b66a9b6d (patch)
tree3f35b073b57f224de677f7abc6021f7478030d6b /win32/PlatWin.cxx
parenteefbc33a98c77976b8d8376fffee0f349360de19 (diff)
downloadscintilla-mirror-1ae67dcdc8685a4c6c90ba99b54eb8d3b66a9b6d.tar.gz
Removed GetNearestColor as paletted displays are no longer supported.
Diffstat (limited to 'win32/PlatWin.cxx')
-rw-r--r--win32/PlatWin.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx
index 11db37a6a..1447a13d5 100644
--- a/win32/PlatWin.cxx
+++ b/win32/PlatWin.cxx
@@ -654,9 +654,7 @@ void SurfaceGDI::BrushColour(ColourDesired back) noexcept {
brush = {};
brushOld = {};
}
- // Only ever want pure, non-dithered brushes
- const ColourDesired colourNearest = ColourDesired(::GetNearestColor(hdc, back.AsInteger()));
- brush = ::CreateSolidBrush(colourNearest.AsInteger());
+ brush = ::CreateSolidBrush(back.AsInteger());
brushOld = SelectBrush(hdc, brush);
}