summaryrefslogtreecommitdiffstats
path: root/desktop
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2018-09-21 11:12:52 +0300
committerTor Lillqvist <tml@collabora.com>2018-09-21 11:15:30 +0300
commit6b28441fb8823ba28a9db6cf1d97aa277cdcd7b4 (patch)
tree788833970dfefdb6d9c93e147f10b7e955bd0cab /desktop
parentChange slightly mysterious comment into a SAL_WARN() (diff)
downloadcore-6b28441fb8823ba28a9db6cf1d97aa277cdcd7b4.tar.gz
core-6b28441fb8823ba28a9db6cf1d97aa277cdcd7b4.zip
Add some temporary test code (ifdeffed out)
Change-Id: If5428e93bafeb97c8f8d39bf3407f34a2b0cfe20
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/init.cxx9
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) ;