Original Post
I can't get the flicker out of my program. All the project is right now is a side scrolling starfield (250 pixels) and a half dozen circles. I've been trying everything to get the flicker to go away. I'm using C++ and the program is set up so that I render a bitmap backbuffer when the WM_PAINT message is sent. It simply calls BitBlt() using the window dc as the destination and my buffer as the source. In my update function (which gets called each frame), I clear out the stars and the circles, update the stars, then I call a render function which renders everything to the buffer. Right after that function call I call InvalidateRect(). I think that that is where my problem is. Could anybody please help me it. It would be very much appreciated. Thank you.