I don't expect to see many responses to this, primarily because I doubt
anyone even bothers with GDI anymore, however I thought I'd ask just in
case some of you folks who've done the GDI bit might have some kind of
primordial memory of the subject.
My current blitter is just a typical DIBSection/BitBlt affair, however
I've noticed that on some occasions I get "white flashes" (maybe one
frame), as if an improper set of bits are being blitted. To track this
down, I force a clear on my backbuffer to red -- if the culprit is my
own code not filling the backbuffer correctly (e.g. I skip a frame or
something like that) I'd expect that the flash would become a "red
flash". Alas, this isn't the case -- even if I force the backbuffer to
red right before I do a BitBlt(), I still get the occasional white
flash.
If this was DDraw, I'd think that the surface was being lost and not
restored, but since these are just DIBSections (or, more specifically,
just one DIB section) I'm thinking it has to be something else I'm doing
wrong. It happens on a wide variety of hardware, so I don't think it's
a driver issue.
Anyone have any ancient memories on what might cause this type of thing?
Thanks,
Brian
|