I have the window size:
#define WIDTH 800
#define HEIGHT 600
and I'm trying this way:
D3DXMATRIX m; D3DXMatrixScaling(&m, WIDTH / (float)1024, HEIGHT / (float)768, 1); m_Sprite->SetTransform(&m); m_Sprite->Draw(m_Texture, NULL, NULL, &position, D3DCOLOR_XRGB(255,255,255));
My sprite is the size 1024x768 and window 800x600
but the sprite is not getting the exact size of the screen :(
Look:
The sprite:
The screen with sprite:
I searched on the forum, but have not found the solution
Thanks
[Edited by - VitaliBR on September 28, 2010 8:15:58 PM]