vcl/quartz/salvd.cxx | 12 ------------
1 file changed, 12 deletions(-)
New commits:
commit 178f5210e658325a705dda675c7d0c05421eea9f
Author: Tor Lillqvist <[email protected]>
AuthorDate: Tue Nov 6 15:06:21 2018 +0200
Commit: Tor Lillqvist <[email protected]>
CommitDate: Tue Nov 6 16:56:23 2018 +0100
Bin more no longer needed dbgutil code
It was used to initialise a virtual device pixel buffer to an
"interesting" pattern, in case actual rendering to it failed. But it
hasn't been needed in a while. And similar code can always be added
temporarily if needed, no need to keep permanently, even in #ifdef
DBG_UTIL.
Change-Id: I650afcb811b903ce3d6d50b9f1eb38c83be68df5
Reviewed-on: https://gerrit.libreoffice.org/62962
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <[email protected]>
diff --git a/vcl/quartz/salvd.cxx b/vcl/quartz/salvd.cxx
index 333276678b57..5f4c1337d9b8 100644
--- a/vcl/quartz/salvd.cxx
+++ b/vcl/quartz/salvd.cxx
@@ -283,12 +283,6 @@ SAL_WNODEPRECATED_DECLARATIONS_POP
const int nBytesPerRow = (mnBitmapDepth * nDX) / 8;
void* pRawData = std::malloc( nBytesPerRow * nDY );
-#ifdef DBG_UTIL
- for (ssize_t i = 0; i < nBytesPerRow * nDY; i++)
- {
- static_cast<sal_uInt8*>(pRawData)[i] = (i & 0xFF);
- }
-#endif
mxBitmapContext = CGBitmapContextCreate( pRawData, nDX, nDY,
8, nBytesPerRow,
GetSalData()->mxRGBSpace, kCGImageAlphaNoneSkipFirst );
SAL_INFO( "vcl.cg", "CGBitmapContextCreate(" << nDX << "x" <<
nDY << "x32) = " << mxBitmapContext );
@@ -300,12 +294,6 @@ SAL_WNODEPRECATED_DECLARATIONS_POP
const int nBytesPerRow = (mnBitmapDepth * nDX) / 8;
void* pRawData = std::malloc( nBytesPerRow * nDY );
-#ifdef DBG_UTIL
- for (ssize_t i = 0; i < nBytesPerRow * nDY; i++)
- {
- ((sal_uInt8*)pRawData)[i] = (i & 0xFF);
- }
-#endif
mxBitmapContext = CGBitmapContextCreate( pRawData, nDX, nDY,
8, nBytesPerRow,
GetSalData()->mxRGBSpace, kCGImageAlphaNoneSkipFirst |
kCGImageByteOrder32Little );
SAL_INFO( "vcl.cg", "CGBitmapContextCreate(" << nDX << "x" << nDY <<
"x32) = " << mxBitmapContext );
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits