equal
deleted
inserted
replaced
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(); |