summaryrefslogtreecommitdiff
path: root/vcl/ios
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-03-25 19:52:30 +0200
committerTor Lillqvist <tml@iki.fi>2013-03-26 19:02:05 +0200
commit881814077515605ab4f816530b81709663de50a2 (patch)
tree7efaee4c8191408a2ecbadcc6caacdeae8eb108b /vcl/ios
parent89d9b9e252f0584afb0e0d995c80c114697a7aa1 (diff)
Introduce temporary lo_set_view_size() hack like on Android and call it
Change-Id: I44df0946f59d1b9a2a6ea935b3c2ea3c96c1260d
Diffstat (limited to 'vcl/ios')
-rw-r--r--vcl/ios/iosinst.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/vcl/ios/iosinst.cxx b/vcl/ios/iosinst.cxx
index b2178e99ef30..8e3137b24d4e 100644
--- a/vcl/ios/iosinst.cxx
+++ b/vcl/ios/iosinst.cxx
@@ -297,6 +297,14 @@ int IosSalSystem::ShowNativeDialog( const rtl::OUString& rTitle,
}
extern "C"
+void lo_set_view_size(int width, int height)
+{
+ // Horrible
+ viewWidth = width;
+ viewHeight = height;
+}
+
+extern "C"
void lo_render_windows(char *pixelBuffer, int width, int height)
{
// Hack: assume so far that we are asked to redraw the whole pixel buffer