Original Post
I am having a bit of a problem with this one line of code. Yes, it is DirectDraw, but the actual error I don't think is related to DirectDraw.
I have two projects, one is a test for the main one; this line works on test, but not on the main one. The error that comes out is:
"ArgumentException: Value does not fall within the expected range."
I have done some debugging, and when I remove the DrawFastFlags.SourceColorKey it works fine. I think it may be something simple I don't have added or something. My theory is that it's not a valid number when you blend them together.
BackBuffer.DrawFast(x, y, surface, DrawFastFlags.DoNotWait | DrawFastFlags.SourceColorKey);I have two projects, one is a test for the main one; this line works on test, but not on the main one. The error that comes out is:
"ArgumentException: Value does not fall within the expected range."
I have done some debugging, and when I remove the DrawFastFlags.SourceColorKey it works fine. I think it may be something simple I don't have added or something. My theory is that it's not a valid number when you blend them together.