From ab49c55bbc7a5fc5b6509fe995abf42ce266ba9b Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 16 Apr 2013 14:32:06 +0200 Subject: More orientation experimentation and hacking Now it re-orients and re-sizes the LO "frame" correctly upon rotation, but it still starts wrongly if starting in landscape orientation. Change-Id: I4c12a7e00d687391435a47400b6e8b4c7e49bdda --- vcl/ios/iosinst.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'vcl/ios') diff --git a/vcl/ios/iosinst.cxx b/vcl/ios/iosinst.cxx index 95a7aacbe6fe..39410fcb7fb8 100644 --- a/vcl/ios/iosinst.cxx +++ b/vcl/ios/iosinst.cxx @@ -165,6 +165,12 @@ public: IosSalInstance::getInstance()->GetWorkArea( rRect ); } + void ShowFullScreen( sal_Bool, sal_Int32 ) + { + SetPosSize( 0, 0, viewWidth, viewHeight, + SAL_FRAME_POSSIZE_WIDTH | SAL_FRAME_POSSIZE_HEIGHT ); + } + virtual void damaged( const basegfx::B2IBox& rDamageRect ) { if (rDamageRect.isEmpty()) @@ -276,7 +282,10 @@ IMPL_LINK( IosSalInstance, DisplayConfigurationChanged, void*, ) for( std::list< SalFrame* >::const_iterator it = getFrames().begin(); it != getFrames().end(); it++ ) { + (*it)->Show( sal_False, sal_False ); (*it)->CallCallback( SALEVENT_SETTINGSCHANGED, 0 ); + (*it)->SetPosSize(0, 0, viewWidth, viewHeight, SAL_FRAME_POSSIZE_WIDTH | SAL_FRAME_POSSIZE_HEIGHT); + (*it)->Show( sal_True, sal_False ); } lo_damaged( CGRectMake( 0, 0, viewWidth, viewHeight ) ); -- cgit