help, DDERR_GENERIC is killing me!

Started by
1 comment, last by Atavist 23 years, 6 months ago
I had hoped the day would never come, yet here I am scrathing my head trying to figure out how to fix a generic error :Q Here is the situation: I have it setup to switch from windowed to full screen ddraw I do this by completely shutting down ddraw, then starting it back up under the new situation. Shut down goes well, DirectDrawCreate works, SetCooperativeLevel is fine... then a call to setdisplaymode kills me, it tells me DDERR_GENERIC, what could I be doing wrong? I have traced it there, I pass it (800,600,24,0,0) just like I have a hundred times... why might this time break it? I have also tried putting Sleep in various places just in case its a timing issue, but no help... Just because the church was wrong doesn't mean Galileo wasn't a heritic. It just means he was a heritic who was right.
Just because the church was wrong doesn't mean Galileo wasn't a heretic.It just means he was a heretic who was right.
Advertisement
Oh, well. I don''t blame anyone not wanting to touch this one with a 10 foot stick
I don''t really ''need'' to be able to switch modes, I''ll only be using windowed mode for debugging...

Just because the church was wrong doesn't mean Galileo wasn't a heritic.
It just means he was a heritic who was right.
Just because the church was wrong doesn't mean Galileo wasn't a heretic.It just means he was a heretic who was right.
>I pass it (800,600,24,0,0)

Try feeding her with 16 or 32 bpp. Some hardware doesn''t like 24 bpp.

Another possibility, naturally, may be that there''s something you''re not shutting down/resetting/reinitializing properly.

This topic is closed to new replies.

Advertisement