I've been doing a bit of 3D programming lately, and about 10 minutes ago decided I felt like making a small 2D application.
This was all well and good until I tried to make a sprite follow the mouse coords. This problem I would say is affecting all my sprites positions but I only noticed it when I was using it to track my mouse. The texture is not drawing where it should be. Now my first assumption is a problem with the size of my back buffer in relation to my window size. The back buffer and window size are both set to 800 x 600 and I've heard you're supposed to do something to compensate for the window borders but I don't know what that is exactly. I'll show you a screen show of the difference of coords to mouse. It seems the further down I move the mouse, the more it the mouse is close to the textures middle (where it should be)
If it makes any difference, I'm tracking mouse movement with GetCursorPos(). The sprite is 50 x 50
sprite->Draw(test, NULL, &D3DXVECTOR3(0, 0, 0), &D3DXVECTOR3(mousePos.x - 25, mousePos.y - 25, 0), D3DCOLOR_XRGB(255, 255, 255));
Don't mind my bad quality sprite. It was just something I put together to see if it was working. The green mouse represents my cursor as it doesn't show up in screenshots.







