diff options
author | Philipp Lohmann [pl] <Philipp.Lohmann@Oracle.COM> | 2011-01-07 11:39:06 +0100 |
---|---|---|
committer | Philipp Lohmann [pl] <Philipp.Lohmann@Oracle.COM> | 2011-01-07 11:39:06 +0100 |
commit | bf904495278d81ebf96c0b7ee3c050509632b0f2 (patch) | |
tree | c5d12745aeeab18c885c564bfa66395350533720 /vcl | |
parent | 3c802c632ef1cbb25aa2f4c9d95d17d9b2f13f72 (diff) |
xlastovi: #i91990# use proper values for CGBitmapContextCreate
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/aqua/source/gdi/salvd.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/vcl/aqua/source/gdi/salvd.cxx b/vcl/aqua/source/gdi/salvd.cxx index 7fe1ffc3a2b0..f633dbbdcdce 100644 --- a/vcl/aqua/source/gdi/salvd.cxx +++ b/vcl/aqua/source/gdi/salvd.cxx @@ -208,18 +208,15 @@ BOOL AquaSalVirtualDevice::SetSize( long nDX, long nDY ) } else { - // fall back to a virtual device - if( mnBitmapDepth > 16 ) - mnBitmapDepth = 32; - else - mnBitmapDepth = 16; + // fall back to a bitmap context + mnBitmapDepth = 32; const CGColorSpaceRef aCGColorSpace = GetSalData()->mxRGBSpace; - const CGBitmapInfo aCGBmpInfo = kCGImageAlphaNone; + const CGBitmapInfo aCGBmpInfo = kCGImageAlphaNoneSkipFirst; const int nBytesPerRow = (mnBitmapDepth * nDX) / 8; void* pRawData = rtl_allocateMemory( nBytesPerRow * nDY ); mxBitmapContext = ::CGBitmapContextCreate( pRawData, nDX, nDY, - mnBitmapDepth, nBytesPerRow, aCGColorSpace, aCGBmpInfo ); + 8, nBytesPerRow, aCGColorSpace, aCGBmpInfo ); xCGContext = mxBitmapContext; } } |