   D3DPT_LINELIST: lines are 1 pixel off
  Hello,I wrote a function to render lines with D3D9 device - it takes a list of points and a list of 16-bit indexes, then debug version calls DrawPrimitiveUP with appropriate parameters (release version does batching). Lines appear (and I am using a D3DX effect for the vertex shader) - so far so good.Unfortunately, when I drew a rectangle, the top left corner of the rectangle has a pixel missing. When I subtract one from either the left line or the top line's coords, it looks perfect - but of course, this is a temporary solution and I want to figure out what is going on.I suspect the projection matrix, so here it is:D3DXMatrixOrthoOffCenterLH(&mtx,0.5f,fWidth + 0.5f,fHeight + 0.5f,0.5f,0.0f, 1000.0f);This just enables pixel perfect drawing for 2D graphics.I also noticed the D3DRS_LASTPIXEL render state, but that doesn't seem to make any difference.The line points are set like this:Vector2 vecPoints[] = {Vector2(rrc.left, rrc.top/* - 1*/),Vector2(rrc.right, rrc.top),Vector2(rrc.right, rrc.bottom),Vector2(rrc.left, rrc.bottom)};rrc is just the rectangle to draw (RECT).Appreciate your insight into what may be wrong.Regards,Val   