On 31/12/2025 19:43, Will Godfrey wrote:
I can get the bandwidth line to draw correctly by forcing 'legacy' action if
I comment out the ifndef sections in MiscGui.cpp lines 1457 to 1480
This is with FLTK 1.4.x on X11
lets put it this way: so this works like intended.... ;-)
The legacy action retrieves a Cairo surface from the XServer.
So it's no wonder this works when you run under X11.
On the other hand, the new solution, which Jesper found out with his patch
goes the way as is intended by FLTK developers (and what is generally
recommended in the new world of Wayland): let the UI toolkit handle it,
instead of rolling your own graphics stack.
In the olde times, we need to do this, since the X11 platform did not offer
a usable full-featured graphics stack. But this has changed now, in theory.
In practice, it works like a charm in the custom widgets, but it does
not work in that pop-up window.
So the question is: why?
We do not know how to do that properly, but presumably there are people
somewhere who have already considered that. So Who can tell us how to do
it properly?
Why not ask on Stackoverflow?
It might well be a bug, and in that case, the FLTK-people should know.
We don't help them the least when we cleverly work around their bugs.
-- Hermann
_______________________________________________
Yoshimi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yoshimi-devel