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:
@@ -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()));
|
||||
|
||||
|
Reference in New Issue
Block a user