f3786f5cb7
On iOS it shouldn't actually be pointer to a pixel char buffer, but a craphics context reference. (This is how it has been since the experimental TiledLibreOffice app, maybe five years ago? Sadly it wasn't documented in the LibreOfficeKit include file. But it is how LibreOfficeLight used the API, too.) In TiledLibreOffice we rendered tiles directly into the CALayer of the view. In this Online-based app we of course do render tiles into pixel char buffers, just like in real Online, but we need to create bitmap graphics contexts for them and pass that to paintTile(). Now I get white tiles, not totally zero-filled ones. But still no document contents rendered. I don't yet want to change the pBuffer parameter to actually be a buffer pointer on iOS, too, like on other platforms. Also, changing it will mean the LibreOfficeLight app would need changing, too, and I don't feel like doing that. But ideally, sure, that should be done.
18 lines
658 B
C
18 lines
658 B
C
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
|
|
/*
|
|
* This file is part of the LibreOffice project.
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
extern const char *lo_ios_app_getCacheDir();
|
|
|
|
extern int loolwsd_server_socket_fd;
|
|
|
|
extern unsigned char *lo_ios_app_get_cgcontext_for_buffer(unsigned char *buffer, int width, int height);
|
|
|
|
extern void lo_ios_app_release_cgcontext_for_buffer();
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|