support for auto-rotate on iphone

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2009-10-24 19:28:50 +00:00
parent 502113941d
commit 65536c9221
4 changed files with 39 additions and 28 deletions

View File

@@ -399,8 +399,13 @@ void wxNonOwnedWindow::DoGetClientSize( int *width, int *height ) const
return;
int left, top, w, h;
// perhaps we should do this for all ?
#ifdef __WXOSX_IPHONE__
m_peer->GetContentArea(left, top, w, h);
#else
m_nowpeer->GetContentArea(left, top, w, h);
#endif
if (width)
*width = w ;
if (height)