Hey, I have found the final bug in this portion of my program and narrowed it down to a single line:
Code:
DoError((char*)DXGetErrorDescription8(dest->Blt(&destRect, Image[frame], &srcRect,
DDBLT_KEYSRC|DDBLT_WAIT, NULL)));
//error is that there are invalid parameters, commenting out DDBLT_KEYSRC fixes this
I have attached the entire file below (it isn't too long just 140 lines, and most can be ignored b/c the error must be in certain places) and I would greatly appreciate it if anybody can find why I am getting the invalid parameter error from this code. Thanks so much