diff options
author | Tor Lillqvist <tml@collabora.com> | 2018-09-21 11:12:52 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2018-09-21 11:15:30 +0300 |
commit | 6b28441fb8823ba28a9db6cf1d97aa277cdcd7b4 (patch) | |
tree | 788833970dfefdb6d9c93e147f10b7e955bd0cab | |
parent | 988cfbaa92e7ec20e2c29b81ba14fb7e314a4a08 (diff) |
Add some temporary test code (ifdeffed out)
Change-Id: If5428e93bafeb97c8f8d39bf3407f34a2b0cfe20
-rw-r--r-- | desktop/source/lib/init.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
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) ; |