summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2018-09-27 17:55:01 +0200
committerTor Lillqvist <tml@collabora.com>2018-09-27 21:09:28 +0200
commitdc6dcebda285aac7306992a00533b855ac5b716d (patch)
tree238ec727b19965259a19bd1568a62aa944f8a2a9
parent999a9c183c395a36fbaf35468ace11a625a581f7 (diff)
Draw rendered tile border here in the normally ifdeffed out snippet
Not just some stuff in one corner. When using this test code, I want to see the borders of the actual (combined) tiles that we attempt to render. Change-Id: I270d5a6b16ec717f8613def57d710b97fbd33672
-rw-r--r--desktop/source/lib/init.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index c52b5dcd8292..67b10ce4c934 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -2103,10 +2103,14 @@ static void doc_paintTile(LibreOfficeKitDocument* pThis,
#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));
+ CGContextFillRect(aData.rCGContext, CGRectMake(20, 0, nCanvasWidth-20, 20));
+ CGContextSetRGBFillColor(aData.rCGContext, 0, 1, 1, .5);
+ CGContextFillRect(aData.rCGContext, CGRectMake(nCanvasWidth-20, 20, 20, nCanvasHeight-20));
+ CGContextSetRGBFillColor(aData.rCGContext, 0, 1, 0, .5);
+ CGContextFillRect(aData.rCGContext, CGRectMake(0, nCanvasHeight-20, nCanvasWidth-20, 20));
+ CGContextSetRGBFillColor(aData.rCGContext, 0, 1, 1, .5);
+ CGContextFillRect(aData.rCGContext, CGRectMake(0, 0, 20, nCanvasHeight-20));
#endif
#else
ScopedVclPtrInstance< VirtualDevice > pDevice(nullptr, Size(1, 1), DeviceFormat::DEFAULT) ;