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.
This commit is contained in:
Vadim Zeitlin
2020-08-14 15:35:00 +02:00
parent 434faa39e6
commit c346fd0321

View File

@@ -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()));