   Sprite Position Error
  I'm trying to position a Sprite on the screen at an exact (x,y) coordinate. I'm translating the sprite by (50,50) and measuring the position of the sprite by displaying the cursor position on the screen. The window size and cursor measurements are correct, but the sprite rectangle is not. The measured sprite rectangle on the screen (using the cursor) is:Top:    47Left:   49Right:  299Bottom: 288The size of the image is 256x256, so I would of expected the following rectangle:Top:    50Left:   50Right:  306Bottom: 306I've been struggling with this for a few hours now and I could use some advice.void ReSizeD3DScene(int width, int height){D3DXMATRIXA16 matProjection;// Calculate The Aspect Ratio Of The WindowD3DXMatrixPerspectiveFovLH(&matProjection, 45.0f, (float)(width+100)/(float)height, 0.1f, 1000.0f );m_pD3DDevice->SetTransform(D3DTS_PROJECTION, &matProjection);    D3DXMatrixIdentity(&matProjection); }void Init(void){    poFont->CreateFontObject(m_hDC,12,"Courier New");    HRESULT hResults = D3DXCreateTextureFromFile(m_pD3DDevice,"Images\Picture.bmp",&m_pTexture);    D3DXCreateSprite(m_pD3DDevice,&m_Sprite);}void Render(void){D3DXVECTOR3 oPosition;oPosition.x = 50;oPosition.y = 50;oPosition.z = 0;m_pD3DDevice->Clear( 0, NULL, D3DCLEAR_TARGET | D3DCLEAR_ZBUFFER,D3DCOLOR_COLORVALUE( 0.0f,0.0f,0.0f,0.0f), 1.0f, 0 );m_pD3DDevice->BeginScene();m_Sprite->Begin(0);HRESULT Result = m_Sprite->Draw(m_pTexture,NULL,NULL,&oPosition,0xFFFFFFFF);D3DXVECTOR2 *Pos = GetMousePosition();poFont->RenderText(TEXT_WHITE,10,10,"Pos %1.0f,%1.0f",Pos->x,Pos->y);m_Sprite->End();m_pD3DDevice->EndScene();m_pD3DDevice->Present( NULL, NULL, NULL, NULL );}