diff options
author | Sven Ritter <unknown> | 2025-06-12 10:54:21 +1000 |
---|---|---|
committer | Sven Ritter <unknown> | 2025-06-12 10:54:21 +1000 |
commit | cfc124a4a9d8ba3176c2ba8a107dcdf4bdd36137 (patch) | |
tree | 5ecafbb48ee7275d1dfa511031a2319f32fbe635 /win32/ListBox.cxx | |
parent | 5fcd699e7056409cab32c783758a6db87c88cb16 (diff) | |
download | scintilla-mirror-cfc124a4a9d8ba3176c2ba8a107dcdf4bdd36137.tar.gz |
Bug [#2482]. Force list colours to be opaque.
Enlarge bitmap to avoid visible blank background between items.
Diffstat (limited to 'win32/ListBox.cxx')
-rw-r--r-- | win32/ListBox.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/ListBox.cxx b/win32/ListBox.cxx index 38806a373..b04e0c86f 100644 --- a/win32/ListBox.cxx +++ b/win32/ListBox.cxx @@ -119,7 +119,7 @@ const TCHAR ListBoxX_ClassName[] = TEXT("ListBoxX"); ColourRGBA ColourElement(std::optional<ColourRGBA> colour, int nIndex) { if (colour.has_value()) { - return colour.value(); + return colour.value().Opaque(); } return ColourFromSys(nIndex); } @@ -743,7 +743,7 @@ void ListBoxX::CentreItem(int n) { } void ListBoxX::AllocateBitMap() { - const SIZE extent { GetClientExtent().x, lineHeight }; + const SIZE extent { GetClientExtent().x, ItemHeight() }; graphics.bm.Create({}, extent.cx, -extent.cy, nullptr); if (!graphics.bm) { |