Kaydet (Commit) dc6dcebd authored tarafından Tor Lillqvist's avatar Tor Lillqvist

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
üst 999a9c18
...@@ -2103,10 +2103,14 @@ static void doc_paintTile(LibreOfficeKitDocument* pThis, ...@@ -2103,10 +2103,14 @@ static void doc_paintTile(LibreOfficeKitDocument* pThis,
#if 0 #if 0
// Draw something at least, to see that the context as such is correctly set up // 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); 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 #endif
#else #else
ScopedVclPtrInstance< VirtualDevice > pDevice(nullptr, Size(1, 1), DeviceFormat::DEFAULT) ; ScopedVclPtrInstance< VirtualDevice > pDevice(nullptr, Size(1, 1), DeviceFormat::DEFAULT) ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment