[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Pnet-developers] Re: Double buffering
From: |
Thong Nguyen |
Subject: |
RE: [Pnet-developers] Re: Double buffering |
Date: |
Thu, 29 Sep 2005 23:53:18 +1200 |
In the mean time, the "patch" is available at:
http://www.veridicus.com/projects/pnetlib_xsharp_flickerfree.zip
Regards,
^Tum
> -----Original Message-----
> From: address@hidden [mailto:pnet-developers-
> address@hidden On Behalf Of radek polak
> Sent: Wednesday, 28 September 2005 8:20 p.m.
> To: address@hidden
> Subject: [Pnet-developers] Re: Double buffering
>
> > Try overloading OnPaintBackground and do nothing in this method (do not
> > even call base.OnPaintBackground, just leave that method completely
> empty).
> > Instead, do the background painting as part of OnPaint.
> >
> > C'ya,
> > Marc
>
> Thanks for reply Marc. I added these lines to my control, but it did not
> help.
>
> protected override void OnPaintBackground(PaintEventArgs e)
> {
>
> }
>
> I was searching irc logs and found this:
>
> <tum> rhysw: do you want to look at my xsharp flickerfree patches?
> <tum> i'm wondering if they should be checked into cvs. the xsharp
> changes are "non breaking" - i.e. unless you set a certain property,
> xsharp functions as before
> <rhysw> what exactly does "flickerfree" do?
> <tum> avoids calling XClearArea which causes the xserver to draw the
> background color -- which is what causes the flickering because it
> bypasses the double buffer
>
> I wonder where if this patch ever hit CVS or not.
>
> So my control still flickers. Any other ideas?
>
> Radek
> _______________________________________________
> Pnet-developers mailing list
> address@hidden
> http://dotgnu.org/mailman/listinfo/pnet-developers