Make custom renderer in dataview sample DPI Aware

This commit is contained in:
Maarten Bent 2020-08-19 21:21:45 +02:00
parent 6f7f387b1b
commit c661be4fc9

View File

@ -262,7 +262,7 @@ public:
virtual wxSize GetSize() const wxOVERRIDE virtual wxSize GetSize() const wxOVERRIDE
{ {
return wxSize(60,20); return GetView()->FromDIP(wxSize(60, 20));
} }
virtual bool SetValue( const wxVariant &value ) wxOVERRIDE virtual bool SetValue( const wxVariant &value ) wxOVERRIDE