diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-04-07 17:10:31 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-04-07 17:56:04 +0300 |
commit | 7bda773a967ae71302695cd1c5d3a780fa1d52ef (patch) | |
tree | 07ae513b003391a93f81a54620f57ce565d6c680 /vcl/quartz | |
parent | 0e0014ded0fc746fb715baeac30d940cf99a2b50 (diff) |
Fill these buffers, too, with easily recognizable junk in dbgutil mode
Change-Id: I7ad8ae6b4995b45deea18270348f6ce626aa1ed6
Diffstat (limited to 'vcl/quartz')
-rw-r--r-- | vcl/quartz/salvd.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vcl/quartz/salvd.cxx b/vcl/quartz/salvd.cxx index 5894ce11374f..e980aa1ccfce 100644 --- a/vcl/quartz/salvd.cxx +++ b/vcl/quartz/salvd.cxx @@ -189,6 +189,10 @@ bool AquaSalVirtualDevice::SetSize( long nDX, long nDY ) const int nBytesPerRow = (mnBitmapDepth * nDX + 7) / 8; void* pRawData = rtl_allocateMemory( 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, mnBitmapDepth, nBytesPerRow, aCGColorSpace, aCGBmpInfo ); CG_TRACE( "CGBitmapContextCreate(" << nDX << "x" << nDY << "x" << mnBitmapDepth << ") = " << mxBitmapContext ); @@ -234,6 +238,10 @@ bool AquaSalVirtualDevice::SetSize( long nDX, long nDY ) const int nBytesPerRow = (mnBitmapDepth * nDX) / 8; void* pRawData = rtl_allocateMemory( 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, aCGColorSpace, aCGBmpInfo ); xCGContext = mxBitmapContext; @@ -246,6 +254,10 @@ bool AquaSalVirtualDevice::SetSize( long nDX, long nDY ) const int nBytesPerRow = (mnBitmapDepth * nDX) / 8; void* pRawData = rtl_allocateMemory( 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, aCGColorSpace, aCGBmpInfo ); CG_TRACE( "CGBitmapContextCreate(" << nDX << "x" << nDY << "x8) = " << mxBitmapContext ); |