Discussion:
Bug#934385: wxDC::Clear() doesn't work if wxWidgets uses GTK3
Add Reply
Olly Betts
2019-08-11 22:10:02 UTC
Reply
Permalink
Control: tag -1 unreproducible
If a draw context is used and wxWidgets 3.0 (3.1 isn't affected, but
isn't packaged with debian as it is the development version) uses GTK3
the background is likely not to be cleared before a redraw as
wxDC::Clear() doesn't work under these circumstances.
I tried to reproduce your bug by patching the drawing sample in the wx
source code using the attached patch, but it seems to work fine for me.

If you cd to the drawing subdirectory and run:

make -f makefile.unx WX_PORT=gtk3

Then double-check that it's linked to the GTK3 version:

ldd drawing|grep libwx_gtk

And then run it:

./drawing

This prints "Clear()" to the console (so we are running the patched
code) but the window doesn't have a hatching on the background. If
you remove the dc.Clear() just after where I've patched and rerun
the make command above then the window has hatching over it. So
clearly wxDC::Clear() is working in this case.

So I'm afraid I don't seem to be able to reproduce your problem.

Please can you come up with a small reproducer (upstream like a patch
against one of their samples) and file a bug upstream?

Cheers,
Olly
Scott Talbert
2019-08-12 03:30:01 UTC
Reply
Permalink
Post by Olly Betts
If a draw context is used and wxWidgets 3.0 (3.1 isn't affected, but
isn't packaged with debian as it is the development version) uses GTK3
the background is likely not to be cleared before a redraw as
wxDC::Clear() doesn't work under these circumstances.
I tried to reproduce your bug by patching the drawing sample in the wx
source code using the attached patch, but it seems to work fine for me.
make -f makefile.unx WX_PORT=gtk3
ldd drawing|grep libwx_gtk
./drawing
This prints "Clear()" to the console (so we are running the patched
code) but the window doesn't have a hatching on the background. If
you remove the dc.Clear() just after where I've patched and rerun
the make command above then the window has hatching over it. So
clearly wxDC::Clear() is working in this case.
So I'm afraid I don't seem to be able to reproduce your problem.
Please can you come up with a small reproducer (upstream like a patch
against one of their samples) and file a bug upstream?
Gunter did file a bug upstream:
https://trac.wxwidgets.org/ticket/18463

However, Olly's request about making a reproducer still stands.

Gunter - also - what desktop environment are you using (e.g., Gnome, KDE,
XFCE, etc.). And are you running on X11 or Wayland?

Scott
Olly Betts
2019-08-12 04:50:02 UTC
Reply
Permalink
Control: forwarded -1 https://trac.wxwidgets.org/ticket/18463
Post by Scott Talbert
Post by Olly Betts
So I'm afraid I don't seem to be able to reproduce your problem.
Please can you come up with a small reproducer (upstream like a patch
against one of their samples) and file a bug upstream?
https://trac.wxwidgets.org/ticket/18463
If you file an upstream bug too, please mark the Debian bug as forwarded
to it, or if you don't know how, at least mention the upstream bug.
Otherwise you have us wasting effort, which is rather disrespectful of
our time.

Cheers,
Olly

Loading...