summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-04-16 14:32:06 +0200
committerTor Lillqvist <tml@iki.fi>2013-04-16 15:51:03 +0300
commitab49c55bbc7a5fc5b6509fe995abf42ce266ba9b (patch)
tree35e285360c7bc393e8fd1efddcb26037c6d347be /vcl
parent5358b9ba4ffa8667192b11bbb654fcdbcd463e7a (diff)
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
Diffstat (limited to 'vcl')
-rw-r--r--vcl/ios/iosinst.cxx9
1 files changed, 9 insertions, 0 deletions
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 ) );