From c346fd0321e2b6838184b6cfe6c30f7d30fb9dce Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 14 Aug 2020 15:35:00 +0200 Subject: [PATCH] Show scale factor in the display sample too Show it for consistency with all the other wxDisplay accessors and to make it simpler to test its return value. --- samples/display/display.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/samples/display/display.cpp b/samples/display/display.cpp index 199e0e275d..c6de01aae4 100644 --- a/samples/display/display.cpp +++ b/samples/display/display.cpp @@ -292,6 +292,11 @@ void MyFrame::PopuplateWithDisplayInfo() sizer->Add(new wxStaticText(page, wxID_ANY, wxString::Format("%d", display.GetDepth()))); + sizer->Add(new wxStaticText(page, wxID_ANY, "Scaling: ")); + sizer->Add(new wxStaticText(page, wxID_ANY, + wxString::Format("%.2f", + display.GetScaleFactor()))); + sizer->Add(new wxStaticText(page, wxID_ANY, "Name: ")); sizer->Add(new wxStaticText(page, wxID_ANY, display.GetName()));