1. Re: Bad Blinking w/ windows
- Posted by "Thomas Parslow (PatRat)" <patrat at rat-software.com> Apr 01, 2001
- 461 views
> Hello, > I screwed up again. I'm using a BMP background beneath a BMP character. > Every time he moves the area around the character blinks. This may have > something to do with the fact that I call for my background earlier in the > main game loop than the character. Although I think it has to be done this > way or the character will end up behind the background. I'm using transBlt > to display the character & copyBlt to display the background. In case you > didn't notice from the subject of the E-mail, I program in windows. My > question is how can I get rid of the blinking? > > -Dan Da Man Try make a pixmap the same size as the window, blt everything to that. When the game loop is complete (or whenever an onpaint event is received) blt the pixmap to the window, this should eliminate the flicker. Thomas Parslow (PatRat) ICQ #:26359483 Rat Software http://www.rat-software.com/ Please leave quoted text in place when replying