[wx-dev] Gdk-WARNING **: Attempt to draw a drawable with depth
24 to a,drawable with depth 32
Robin Dunn
robin at alldunn.com
Mon Jun 18 16:04:56 PDT 2007
Vadim Zeitlin wrote:
> On Mon, 18 Jun 2007 15:30:24 -0700 Robin Dunn <robin at alldunn.com> wrote:
>
> RD> Nevermind. I think I've tracked this down to the default kde/gtk theme
> RD> on Kubuntu and the app calling SetUseBestVisual. If I don't use the
> RD> default theme or if I don't call SetUseBestVisual then I don't get those
> RD> warnings and the native widgets draw themselves as expected.
>
> Does wxGLCanvas work without it though? I thought it was needed for it.
It appears to work fine in the default 24-bit visual on my system. If I
use SetUseBestVisual then I get a 32-bit visual and my simple GLCanvas
tests look identical to my eye, but apparently some themes have
troubles. Probably means that their authors are making assumptions
about the bit depth instead of using the APIs needed to determine it
programatically.
The qt/gtk combo theme I normally use (qtCurve) doesn't have problems
drawing the widgets or spit out this warning, but it does have problems
when redrawing scrolled windows. (Both wxScrolledWindows and things
like multi-line text controls.) Scrolling down is fine, but scrolling
up with the mouse wheel or keyboard cursor keys will cause it to redraw
the just scrolled-into-view chunks of pixels repeatedly down the window.
Very strange.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wx-dev
mailing list