Thursday, June 27, 2013

Win32 no more flicker

Thanks to this blog, solved that flicker problem by:

  1. Painting to a back buffer instead of directly to screen
  2. Overriding WM_ERASEBKGND with "return true" so that it doesn't erase the background every second/every time the screen is invalidated.

Code

Next, to get rid of the black background.

No comments:

Post a Comment