summaryrefslogtreecommitdiff
path: root/vcl/ios
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-03-28 23:16:12 +0200
committerTor Lillqvist <tml@iki.fi>2013-03-30 07:53:38 +0200
commite36e86ee3cf7761dea59141881ee5108d3d3bb86 (patch)
tree5c7a90c4174bb7c0ee6cd61645b6ecacebd87048 /vcl/ios
parentbd9c914047c64e75506a5acc45642ac4ddf9d7d6 (diff)
Refactor the iOS Viewer app and rename it to "LibreOffice"
No, it isn't any closer to being "ready" despite the name, but still, using the current approach, it clearly isn't restricted to be just a viewer. Also drop the verbose LOViewer prefix from class and file names in it. Change-Id: Ib4e8a31d6fa1b35169ee98cf2aa8f0f22957164c
Diffstat (limited to 'vcl/ios')
-rw-r--r--vcl/ios/iosinst.cxx15
1 files changed, 7 insertions, 8 deletions
diff --git a/vcl/ios/iosinst.cxx b/vcl/ios/iosinst.cxx
index f0c15421bd08..819fdec0e97a 100644
--- a/vcl/ios/iosinst.cxx
+++ b/vcl/ios/iosinst.cxx
@@ -89,9 +89,10 @@ void IosSalInstance::RedrawWindows(char *pPixelBuffer,
}
}
-void IosSalInstance::damaged(IosSalFrame */* frame */)
+void IosSalInstance::damaged( IosSalFrame */* frame */,
+ const basegfx::B2IBox& rDamageRect )
{
- lo_damaged();
+ lo_damaged( CGRectMake( rDamageRect.getMinX(), rDamageRect.getMinY(), rDamageRect.getWidth(), rDamageRect.getHeight() ));
}
void IosSalInstance::GetWorkArea( Rectangle& rRect )
@@ -188,14 +189,12 @@ public:
IosSalInstance::getInstance()->GetWorkArea( rRect );
}
- virtual void damaged( const basegfx::B2IBox& rDamageRect)
+ virtual void damaged( const basegfx::B2IBox& rDamageRect )
{
- if (rDamageRect.getWidth() <= 0 ||
- rDamageRect.getHeight() <= 0)
- {
+ if (rDamageRect.isEmpty())
return;
- }
- IosSalInstance::getInstance()->damaged( this );
+
+ IosSalInstance::getInstance()->damaged( this, rDamageRect );
}
virtual void UpdateSettings( AllSettings &rSettings )