[Igarden-commit] CommonSource/YAAFExtensions RGCompression.cpp, 1.2, 1.2.2.1
Status: Beta
Brought to you by:
jlbedell
|
From: Jeffrey B. <jlb...@us...> - 2008-05-17 21:07:41
|
Update of /cvsroot/igarden/CommonSource/YAAFExtensions In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv4493/YAAFExtensions Modified Files: Tag: Release_branch_v1 RGCompression.cpp Log Message: Remove some obsolete code Index: RGCompression.cpp =================================================================== RCS file: /cvsroot/igarden/CommonSource/YAAFExtensions/RGCompression.cpp,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -C2 -d -r1.2 -r1.2.2.1 *** RGCompression.cpp 8 Sep 2004 01:07:39 -0000 1.2 --- RGCompression.cpp 17 May 2008 21:07:43 -0000 1.2.2.1 *************** *** 100,119 **** viewRect.bottom = static_cast<long>(imageHeight); viewRect.right = static_cast<long>(imageWidth); - #if 0 - if(imageHeight < imageWidth) - { - newHeight = height * (imageHeight/imageWidth); - viewRect.top = (height - newHeight) / 2; - viewRect.bottom = viewRect.top + newHeight; - viewRect.right = width; - } - else - { - newWidth = width * (imageWidth/imageHeight); - viewRect.left = (width - newWidth) / 2; - viewRect.right = viewRect.left + newWidth; - viewRect.bottom = height; - } - #endif ::GraphicsImportSetBoundsRect(*component, &viewRect); result = new CGWorld(viewRect); --- 100,103 ---- |