From 767f545be5fe191f5abba35d1fb1374a7e2c158a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 8 Nov 2019 00:07:54 +0100 Subject: [PATCH] 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. --- samples/display/display.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/samples/display/display.cpp b/samples/display/display.cpp index 2d5b264dcb..2c7b523e92 100644 --- a/samples/display/display.cpp +++ b/samples/display/display.cpp @@ -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());