RE: [GD-Windows] (GDI) "Flashing white" in window
Brought to you by:
vexxed72
From: Andy G. <an...@mi...> - 2002-01-26 22:22:21
|
Ancient? :-) seems like only yesterday -sigh- Maybe spy on your window with Spy+ and see what messages are coming to you and make sure you handle all of them properly. I assume you are dealing with WM_ERASEBKGND? You should just return true to this - this can cause these flashes to the background color - try altering the background color of windows in the display appearance tab - see if it alters your flashing color. Andy Glaister -----Original Message----- From: Brian Hook [mailto:bri...@py...]=20 Sent: Saturday, January 26, 2002 12:37 PM To: gam...@li... Subject: [GD-Windows] (GDI) "Flashing white" in window 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 _______________________________________________ Gamedevlists-windows mailing list Gam...@li... https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows |