• Advertisement

Archived

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

create big surface error !

This topic is 6558 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

Wrote a game, display size 640x480x24. I use an offscreen-plain surface with the size of 800x600. On my PC the game runs properly. But i tried it on 2 other PCs, there the creation of the 800x600 surface fails, if i make it smaller,it works. Is there a problem,because 800x600 is bigger than the display size ? Why does it run on my PC and not on the other ones ?

Share this post


Link to post
Share on other sites
Advertisement
You are probably trying to create the surfaces in videomemory, many older graphic cards don''t have that much onboard memory.

Share this post


Link to post
Share on other sites
some old systems don''t support surfaces that are wider than the primary surface (wide surfaces)
check for that flag, i think it''s a member of the surfacecaps structure

Share this post


Link to post
Share on other sites

  • Advertisement