[Libreoffice-commits] core.git: desktop/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Sep 27 19:10:27 UTC 2018


 desktop/source/lib/init.cxx |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

New commits:
commit dc6dcebda285aac7306992a00533b855ac5b716d
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Thu Sep 27 17:55:01 2018 +0200
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Thu Sep 27 21:09:28 2018 +0200

    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

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) ;


More information about the Libreoffice-commits mailing list