graphicstest/graphicstestharness/src/graphicsimagecomparison.cpp
branchRCL_3
changeset 164 25ffed67c7ef
parent 163 bbf46f59e123
--- a/graphicstest/graphicstestharness/src/graphicsimagecomparison.cpp	Tue Aug 31 16:31:06 2010 +0300
+++ b/graphicstest/graphicstestharness/src/graphicsimagecomparison.cpp	Wed Sep 01 12:39:21 2010 +0100
@@ -1,4 +1,4 @@
-// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
 // All rights reserved.
 // This component and the accompanying materials are made available
 // under the terms of "Eclipse Public License v1.0"
@@ -16,6 +16,7 @@
 /**
  @file
  @test
+ @internalComponent - Internal Symbian test code
 */
 
 #include "graphicsimagecomparison.h"
@@ -93,7 +94,7 @@
             delete[] buffer1;
             return KErrNoMemory;
             }
-        TPtr8 scanLine2(buffer2, scanLineLength2, scanLineLength2);
+        TPtr8 scanLine2(buffer1, scanLineLength2, scanLineLength2);
 
         //Perform scanline to scanline comparison without comparison mask
 	    for(TInt y=0; y<localSize.iHeight; y++)
@@ -109,7 +110,7 @@
                 for(TInt x=0; x<localSize.iWidth; x++)
                     {
                     pixel1 = *(((TRgb*)buffer1) + x);
-                    pixel2 = *(((TRgb*)buffer2) + x);
+                    pixel2 = *(((TRgb*)buffer1) + x);
 
                     if( (pixel1.Internal()& aComparisonMask) != (pixel2.Internal()& aComparisonMask))
                         {