desktop/source/lib/init.cxx | 9 +++++++++ 1 file changed, 9 insertions(+)
New commits: commit 6b28441fb8823ba28a9db6cf1d97aa277cdcd7b4 Author: Tor Lillqvist <t...@collabora.com> AuthorDate: Fri Sep 21 11:12:52 2018 +0300 Commit: Tor Lillqvist <t...@collabora.com> CommitDate: Fri Sep 21 11:15:30 2018 +0300 Add some temporary test code (ifdeffed out) Change-Id: If5428e93bafeb97c8f8d39bf3407f34a2b0cfe20 diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 32c0a0b2b03c..adbb33de93e8 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -20,6 +20,7 @@ #include <unicode/ucnv.h> #include <premac.h> #import <Foundation/Foundation.h> +#import <CoreGraphics/CoreGraphics.h> #include <postmac.h> #endif @@ -2098,6 +2099,14 @@ static void doc_paintTile(LibreOfficeKitDocument* pThis, pDoc->paintTile(*pDevice.get(), nCanvasWidth, nCanvasHeight, nTilePosX, nTilePosY, nTileWidth, nTileHeight); + +#if 0 + // Draw something at least, to see that the context as such is correctly set up + CGContextSetRGBFillColor(aData.rCGContext, 1, 0, 0, 1); + CGContextFillRect(aData.rCGContext, CGRectMake (0, 0, 200, 100)); + CGContextSetRGBFillColor(aData.rCGContext, 0, 0, 1, .5); + CGContextFillRect(aData.rCGContext, CGRectMake (0, 0, 100, 200)); +#endif #else ScopedVclPtrInstance< VirtualDevice > pDevice(nullptr, Size(1, 1), DeviceFormat::DEFAULT) ; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits