aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-rw-r--r--win32/ListBox.cxx4
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) {