64-bit warning fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41547 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2006-10-02 05:36:31 +00:00
parent 0219fd2faa
commit b143cf708b
11 changed files with 26 additions and 28 deletions

View File

@@ -36,17 +36,15 @@ bool TestApp::OnInit()
#if wxUSE_DISPLAY
else
{
size_t count = wxDisplay::GetCount();
wxLogDebug ( _T("I detected %i display(s) on your system"), count );
size_t i = 0;
while ( i < count )
unsigned count = wxDisplay::GetCount();
wxLogDebug ( _T("I detected %u display(s) on your system"), count );
for (unsigned i = 0; i < count; i++)
{
wxDisplay display ( i );
wxRect r = display.GetGeometry();
wxLogDebug ( _T("Display #%i \"%s\" = ( %i, %i, %i, %i ) @ %i bits"),
wxLogDebug ( _T("Display #%u \"%s\" = ( %i, %i, %i, %i ) @ %i bits"),
i, display.GetName().c_str(), r.GetLeft(), r.GetTop(), r.GetWidth(), r.GetHeight(),
display.GetCurrentMode().GetDepth() );
i++;
}
}
#endif