salgdiutils.cxx (025194d6) | salgdiutils.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 --- 183 unchanged lines hidden (view full) --- 192 rReleaseContext = mrContext; 193 rReleaseLayer = mxLayer; 194 mrContext = NULL; 195 mxLayer = NULL; 196 } 197 198 if( !mrContext ) 199 { | 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 --- 183 unchanged lines hidden (view full) --- 192 rReleaseContext = mrContext; 193 rReleaseLayer = mxLayer; 194 mrContext = NULL; 195 mxLayer = NULL; 196 } 197 198 if( !mrContext ) 199 { |
200 const CGSize aLayerSize = {nWidth,nHeight}; | 200 const CGSize aLayerSize = CGSizeMake( nWidth, nHeight); |
201 NSGraphicsContext* pNSGContext = [NSGraphicsContext graphicsContextWithWindow: mpFrame->getWindow()]; 202 CGContextRef xCGContext = reinterpret_cast<CGContextRef>([pNSGContext graphicsPort]); 203 mxLayer = CGLayerCreateWithContext( xCGContext, aLayerSize, NULL ); 204 if( mxLayer ) 205 mrContext = CGLayerGetContext( mxLayer ); 206 207 if( mrContext ) 208 { --- 90 unchanged lines hidden --- | 201 NSGraphicsContext* pNSGContext = [NSGraphicsContext graphicsContextWithWindow: mpFrame->getWindow()]; 202 CGContextRef xCGContext = reinterpret_cast<CGContextRef>([pNSGContext graphicsPort]); 203 mxLayer = CGLayerCreateWithContext( xCGContext, aLayerSize, NULL ); 204 if( mxLayer ) 205 mrContext = CGLayerGetContext( mxLayer ); 206 207 if( mrContext ) 208 { --- 90 unchanged lines hidden --- |