salvd.cxx (2f2a22e7) salvd.cxx (cd426cce)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 214 unchanged lines hidden (view full) ---

223 8, nBytesPerRow, aCGColorSpace, aCGBmpInfo );
224 xCGContext = mxBitmapContext;
225 }
226 }
227 }
228
229 DBG_ASSERT( xCGContext, "no context" );
230
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 214 unchanged lines hidden (view full) ---

223 8, nBytesPerRow, aCGColorSpace, aCGBmpInfo );
224 xCGContext = mxBitmapContext;
225 }
226 }
227 }
228
229 DBG_ASSERT( xCGContext, "no context" );
230
231 const CGSize aNewSize = { nDX, nDY };
231 const CGSize aNewSize = CGSizeMake( nDX, nDY);
232 mxLayer = CGLayerCreateWithContext( xCGContext, aNewSize, NULL );
233
234 if( mxLayer && mpGraphics )
235 {
236 // get the matching Quartz context
237 CGContextRef xDrawContext = CGLayerGetContext( mxLayer );
238 mpGraphics->SetVirDevGraphics( mxLayer, xDrawContext, mnBitmapDepth );
239 }

--- 20 unchanged lines hidden ---
232 mxLayer = CGLayerCreateWithContext( xCGContext, aNewSize, NULL );
233
234 if( mxLayer && mpGraphics )
235 {
236 // get the matching Quartz context
237 CGContextRef xDrawContext = CGLayerGetContext( mxLayer );
238 mpGraphics->SetVirDevGraphics( mxLayer, xDrawContext, mnBitmapDepth );
239 }

--- 20 unchanged lines hidden ---