Jump to content
  • Advertisement
Sign in to follow this  

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

This topic is 4818 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:

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
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 ?

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!