printingservices/printerdriversupport/src/FBSDRV.CPP
branchRCL_3
changeset 7 5e51caaeeb72
parent 0 5d03bc08d59c
equal deleted inserted replaced
6:de3d5b6102ac 7:5e51caaeeb72
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 1997-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
   388  @return ETrue if there are non-blank bytes in scanline. 
   388  @return ETrue if there are non-blank bytes in scanline. 
   389  */
   389  */
   390 EXPORT_C TBool CFbsDrvControl::TransformBuffer()
   390 EXPORT_C TBool CFbsDrvControl::TransformBuffer()
   391 	{	
   391 	{	
   392 	TInt i;
   392 	TInt i;
   393 	for (i = iScanLine->Des().Length() - 1; (i >= 0) && (iScanLine->Des()[i] == 0xFF); i--)
   393 	for (i = iScanLine->Length() - 1; (i >= 0) && (iScanLine->Des()[i] == 0xFF); i--)
   394 		{
   394 		{
   395 		}
   395 		}
   396 	TInt length = i + 1;
   396 	TInt length = i + 1;
   397 	iScanLine->Des().SetLength(length);
   397 	iScanLine->Des().SetLength(length);
   398 	TUint8* p = (TUint8*)iScanLine->Des().Ptr();
   398 	TUint8* p = (TUint8*)iScanLine->Des().Ptr();