From dbcfe56ae53b949575aaecf4c47e512c8a07ab0b Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Sat, 13 Feb 2021 01:42:10 +0100 Subject: [PATCH] Make wxPenStyleComboBox in Combo sample DPI aware --- samples/combo/combo.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/samples/combo/combo.cpp b/samples/combo/combo.cpp index 9a55db88de..6176989941 100644 --- a/samples/combo/combo.cpp +++ b/samples/combo/combo.cpp @@ -252,10 +252,7 @@ public: virtual wxCoord OnMeasureItem( size_t item ) const wxOVERRIDE { // Simply demonstrate the ability to have variable-height items - if ( item & 1 ) - return 36; - else - return 24; + return FromDIP( item & 1 ? 36 : 24 ); } virtual wxCoord OnMeasureItemWidth( size_t WXUNUSED(item) ) const wxOVERRIDE