summaryrefslogtreecommitdiff
path: root/vcl/aqua/source/gdi/salvd.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/aqua/source/gdi/salvd.cxx')
-rw-r--r--vcl/aqua/source/gdi/salvd.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/vcl/aqua/source/gdi/salvd.cxx b/vcl/aqua/source/gdi/salvd.cxx
index de09867e4071..d67aea8d3657 100644
--- a/vcl/aqua/source/gdi/salvd.cxx
+++ b/vcl/aqua/source/gdi/salvd.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,7 +44,7 @@ SalVirtualDevice* AquaSalInstance::CreateVirtualDevice( SalGraphics* pGraphics,
{
// #i92075# can be called first in a thread
SalData::ensureThreadAutoreleasePool();
-
+
return new AquaSalVirtualDevice( static_cast< AquaSalGraphics* >( pGraphics ), nDX, nDY, nBitCount, pData );
}
@@ -58,10 +58,10 @@ void AquaSalInstance::DestroyVirtualDevice( SalVirtualDevice* pDevice )
// =======================================================================
AquaSalVirtualDevice::AquaSalVirtualDevice( AquaSalGraphics* pGraphic, long nDX, long nDY, USHORT nBitCount, const SystemGraphicsData *pData )
-: mbGraphicsUsed( false )
-, mxBitmapContext( NULL )
-, mnBitmapDepth( 0 )
-, mxLayer( NULL )
+: mbGraphicsUsed( false )
+, mxBitmapContext( NULL )
+, mnBitmapDepth( 0 )
+, mxLayer( NULL )
{
if( pGraphic && pData && pData->rCGContext )
{
@@ -91,7 +91,7 @@ AquaSalVirtualDevice::AquaSalVirtualDevice( AquaSalGraphics* pGraphic, long nDX,
if( nDX && nDY )
SetSize( nDX, nDY );
-
+
// NOTE: if SetSize does not succeed, we just ignore the nDX and nDY
}
}
@@ -203,9 +203,9 @@ BOOL AquaSalVirtualDevice::SetSize( long nDX, long nDY )
xCGContext = reinterpret_cast<CGContextRef>([pNSContext graphicsPort]);
}
}
-
+
DBG_ASSERT( xCGContext, "no context" );
-
+
const CGSize aNewSize = { nDX, nDY };
mxLayer = CGLayerCreateWithContext( xCGContext, aNewSize, NULL );