diff options
| author | Neil <nyamatongwe@gmail.com> | 2020-07-11 12:47:28 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2020-07-11 12:47:28 +1000 |
| commit | c86c0527d24999abacb952f7d5cb0a6b4acd0915 (patch) | |
| tree | 6bc4f2a69aa23403022d10697fc8e83d2513d378 /win32/PlatWin.cxx | |
| parent | a98083295aa452d8624b43ea728f6ab0e4cc79d6 (diff) | |
| download | scintilla-mirror-c86c0527d24999abacb952f7d5cb0a6b4acd0915.tar.gz | |
Backport: Removed GetNearestColor as paletted displays are no longer supported.
Backport of changeset 8397:c1ad4413f156.
Diffstat (limited to 'win32/PlatWin.cxx')
| -rw-r--r-- | win32/PlatWin.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 080b03fc9..13e48b834 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); } |
