Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

wxScintilla - flickers badly on Ubuntu 9.10 + fix

(1/3) > >>

eranif:
Hi,

As part of a bug report I got from a user about my project, he complained that on the recent ubuntu release (karmic 9.10) the scintilla based editor flickers when 'brace matches' feature is ON (the ability to colour the matched brace in the editor when the caret is located near its sibling)

So as part of my investigation, I installed C::B 8.02 which is available in the ubuntu repositories, and I can confirm that C::B flickers as well.

Here is a youtube video that I first got with the bug reported:

http://www.youtube.com/watch?v=7TipIOQ945A
I can confirm that this bug exist in C::B as well as in wxSTC sample program

The fix is quite simple actually:
in wxscintilla.cpp, in the method: wxScintilla::OnPaint (wxPaintEvent& WXUNUSED(evt))
replace this:

--- Code: --- wxPaintDC dc(this);
--- End code ---
wiht this

--- Code: ---#ifdef __WXGTK__
// On Mac / Windows there is no real need for this
    wxBufferedPaintDC dc(this);
#else
wxPaintDC dc(this);
#endif

--- End code ---

Sorry for not providing patch, but our version of wxscintilla differs in more than just this change
Eran

ollydbg:
You are so kind and nice!!!

Jenna:
Applied in trunk.

Many thanks for the patch Eran.

eranif:

--- Quote from: jens on November 08, 2009, 05:56:28 pm ---Applied in trunk.

Many thanks for the patch Eran.

--- End quote ---
Anytime, I will let you guys know If I will fix any other interesting issues that might interest you as well  ;)

Eran

mandrav:

--- Quote from: eranif on November 08, 2009, 06:03:13 pm ---
--- Quote from: jens on November 08, 2009, 05:56:28 pm ---Applied in trunk.

Many thanks for the patch Eran.

--- End quote ---
Anytime, I will let you guys know If I will fix any other interesting issues that might interest you as well  ;)

Eran

--- End quote ---

Gosh, Eran, you 're a life saver :)
Thanks for this patch.

Navigation

[0] Message Index

[#] Next page

Go to full version