equal
deleted
inserted
replaced
467 |
467 |
468 TRect myRect; |
468 TRect myRect; |
469 myRect.SetRect( cellLeftTop, cellBottomRight ); |
469 myRect.SetRect( cellLeftTop, cellBottomRight ); |
470 TPoint offset; |
470 TPoint offset; |
471 |
471 |
472 if(!iIsMirrored) |
472 offset.iX = ( aIndex % iMaxColumns ) * iCellWidth; |
473 { |
|
474 offset.iX = ( aIndex % iMaxColumns ) * iCellWidth; |
|
475 } |
|
476 else |
|
477 { |
|
478 offset.iX = ( aIndex % iMaxColumns ) * iCellWidth; |
|
479 } |
|
480 |
|
481 offset.iY = aIndex / iMaxColumns * iCellHeight; |
473 offset.iY = aIndex / iMaxColumns * iCellHeight; |
482 |
474 |
483 myRect.Move( offset ); |
475 myRect.Move( offset ); |
484 |
476 |
485 // don't draw bg/highlight over borderlines |
477 // don't draw bg/highlight over borderlines |