Number displays in the sample starting from 1, not 0

This is more usual and coincides with the built-in display names under
MSW, where they're called "DISPLAY1", "DISPLAY2" etc.

No real changes.
This commit is contained in:
Vadim Zeitlin
2019-11-08 00:07:54 +01:00
parent e87ea7389b
commit 767f545be5

View File

@@ -327,9 +327,7 @@ void MyFrame::PopuplateWithDisplayInfo()
page->SetSizer(sizerTop);
page->Layout();
m_book->AddPage(page,
wxString::Format("Display %lu",
(unsigned long)nDpy));
m_book->AddPage(page, wxString::Format("Display %zu", nDpy + 1));
}
SetClientSize(m_book->GetBestSize());