Jump to content
  • Advertisement
Sign in to follow this  
Frente

Why [pRect doesn't fit inside the surface]??

This topic is 4729 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I wrote these code in my program:
g_pd3dDevice->Clear(0,NULL,D3DCLEAR_TARGET|D3DCLEAR_ZBUFFER,D3DCOLOR_XRGB(0,0,0),1.0f,0);
	if(SUCCEEDED(g_pd3dDevice->BeginScene())){
		
	  g_pd3dDevice->UpdateSurface(Surface,NULL,BackBuffer,NULL);

	  g_pd3dDevice->EndScene();
	
	}
	g_pd3dDevice->Present(NULL,NULL,NULL,NULL);
	Surface->Release();
And before it,I use D3DXLoadSurfaceFromFile(Surface,NULL,NULL,Path,NULL,D3DX_FILTER_NONE,0,NULL) to load a jpg file to Surface,and i'm sure it's OK. But why i got these ERROR??What's these mean?thx~ Direct3D9: (ERROR) :pRect doesn't fit inside the surface Direct3D9: (ERROR) :Invalid dest rect specified. UpdateSurface failed [Edited by - Frente on September 6, 2005 1:51:28 AM]

Share this post


Link to post
Share on other sites
Advertisement
Oh i forgot it...
But if I want to load a image from a file and i set the size of BackBuffer bigger then the size of the image,the image didn't presents as it's normal size~
How to solve it ?
thx

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!