Archived

This topic is now archived and is closed to further replies.

Qix99

DDERR_INVALIDPARMS with CreateSurface

Recommended Posts

When I try create a surface bigger than 1024 in width i get a DDERR_INVALIDPARMS - the only reason i think its 1024 is its windowed mode and my screen size is 1024*768

Share this post


Link to post
Share on other sites
Many graphics cards have a restriction where any off screen surfaces you create cannot be wider than the primary surface. (There is a caps flag you can check to detect these kinds of cards).

--
Simon O''''Connor
Creative Asylum Ltd
www.creative-asylum.com

Share this post


Link to post
Share on other sites
If your hardware doesn''t support it, you can''t.

You have 2 choices:

1. Use a system memory offscreen plain surface - this should (AFAICR) let you create a bigger one, but it will perform much worse than a video memory.

2. Use multiple smaller surfaces to represent a bigger one. This is what we do for textures on graphics hardware which cannot do textures bigger than 256x256.

--
Simon O''''Connor
Creative Asylum Ltd
www.creative-asylum.com

Share this post


Link to post
Share on other sites