salinst.cxx (9f62ea84) | salinst.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 --- 1312 unchanged lines hidden (view full) --- 1321 if( pImage ) 1322 { 1323 [pImage setFlipped: YES]; 1324 [pImage lockFocus]; 1325 1326 NSGraphicsContext* pContext = [NSGraphicsContext currentContext]; 1327 CGContextRef rCGContext = reinterpret_cast<CGContextRef>([pContext graphicsPort]); 1328 | 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 --- 1312 unchanged lines hidden (view full) --- 1321 if( pImage ) 1322 { 1323 [pImage setFlipped: YES]; 1324 [pImage lockFocus]; 1325 1326 NSGraphicsContext* pContext = [NSGraphicsContext currentContext]; 1327 CGContextRef rCGContext = reinterpret_cast<CGContextRef>([pContext graphicsPort]); 1328 |
1329 const CGRect aDstRect = { {0, 0}, { aSize.Width(), aSize.Height() } }; | 1329 const CGRect aDstRect = CGRectMake( 0, 0, aSize.Width(), aSize.Height()); |
1330 CGContextDrawImage( rCGContext, aDstRect, xImage ); 1331 1332 [pImage unlockFocus]; 1333 } 1334 1335 CGImageRelease( xImage ); 1336 1337 return pImage; 1338} | 1330 CGContextDrawImage( rCGContext, aDstRect, xImage ); 1331 1332 [pImage unlockFocus]; 1333 } 1334 1335 CGImageRelease( xImage ); 1336 1337 return pImage; 1338} |