Original Post
I thought I was starting to get the hang of this, but I guess not :D. Anyways, I'm sort of lost as to what my problem is here. As my topic says, I can't get tiles to consume the entire window. I do not have this problem in Full Screen mode. I've read something about the difference between width and pitch, is that what's going on in my case? This is a pic my my problem. www.everyrpg.com/showExp.jpg This code is crammed into my message loop.
[source lang=c++]{
int x = 10;
int y = 10;
d3ddev->Clear(0,NULL,D3DCLEAR_TARGET,D3DCOLOR_XRGB(0,255,255), 1.0f,0);
RECT dest;
RECT src;
src.bottom = 64;
src.top = 0;
src.left = 0;
src.right = 64;
dest.bottom = 64;
dest.top = 0;
dest.left = 0;
dest.right = 64;
d3ddev->BeginScene();
for(int j=0; j<=y; j++)
{
for(int i =0 ; i<=x; i++)
{
d3ddev->GetBackBuffer(0,0,D3DBACKBUFFER_TYPE_MONO,&backbuffer);
d3ddev->StretchRect(surface,&src,backbuffer,&dest,D3DTEXF_NONE);
dest.left += 64;
dest.right += 64;
}
dest.top +=64;
dest.bottom +=64;
dest.left = 0;
dest.right = 64;
}
d3ddev->EndScene();
d3ddev->Present(NULL,NULL,NULL,NULL);
}