camerauis/cameraapp/generic/src/camlinevfgriddrawer.cpp
changeset 1 f5ec9446e5bf
parent 0 1ddebce53859
equal deleted inserted replaced
0:1ddebce53859 1:f5ec9446e5bf
   287 
   287 
   288   TInt j = 0;
   288   TInt j = 0;
   289   while( j < aVerticalLines )
   289   while( j < aVerticalLines )
   290     {
   290     {
   291     // Max used to make sure no div-by-zero
   291     // Max used to make sure no div-by-zero
   292     TInt currentX = ((j+indexOffset)*width) / Max(1,aVerticalLines+countOffset) - KPenWidth/2;
   292     TInt currentX = leftX + ((j+indexOffset)*width) / Max(1,aVerticalLines+countOffset) - KPenWidth/2;
   293     iLineArray.Append( TRect( currentX, topY, currentX, bottomY ) );
   293     iLineArray.Append( TRect( currentX, topY, currentX, bottomY ) );
   294     j++;
   294     j++;
   295     }
   295     }
   296   // -------------------------------------------------------
   296   // -------------------------------------------------------
   297   }
   297   }