From: Patrick E. <pa...@pa...> - 2004-04-09 15:35:52
|
On Thursday 08 April 2004 18:19, joakim verona wrote: > I was wondering if anybody else was trying to compile jazz with wx > 2.5.1. > > Im trying because I wanted to try to get rid of the anoying > redraw-flicker you get when scrolling a pianowin or trackwin. > > In wx 2.5, there is a wxBufferedPaintDC that is supposed to fix the > redraw flicker. I think it would solve the problem if we just draw to a memoryDC first, and then blit to the window when the paint event is requested. I believe the Buffered classes in 2.5 just make is slightly simpler to draw, but coding up one of those classes would be pretty easy as far as I can see. You'd create a class that makes a wxMemoryDC in a constructor and writes to that. Later, the destructor would blit the resulting bitmap to a wxClientDC. Patrick |