Introduce temporary lo_set_view_size() hack like on Android and call it
Change-Id: I44df0946f59d1b9a2a6ea935b3c2ea3c96c1260d
This commit is contained in:
parent
89d9b9e252
commit
8818140775
3 changed files with 11 additions and 0 deletions
|
@ -45,6 +45,8 @@ static UIWindow *theWindow;
|
|||
self.window.pixelBuffer = pixelBuffer;
|
||||
self.window.image = image;
|
||||
|
||||
lo_set_view_size(bounds.size.width, bounds.size.height);
|
||||
|
||||
[self.window makeKeyAndVisible];
|
||||
|
||||
NSThread* thread = [[NSThread alloc] initWithTarget:self
|
||||
|
|
|
@ -42,6 +42,7 @@ void lo_damaged();
|
|||
/* 2) */
|
||||
|
||||
void lo_runMain();
|
||||
void lo_set_view_size(int width, int height);
|
||||
void lo_render_windows(char *pixelBuffer, int width, int height);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -296,6 +296,14 @@ int IosSalSystem::ShowNativeDialog( const rtl::OUString& rTitle,
|
|||
return 0;
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue