It's been a while since I've used DirectDraw, so my recollection of the details of DDFLIP_DONOTWAIT and DDFLIP_WAIT are a bit fuzzy. I have to say that I am now at a loss as to explain why this is happening.