On 28/12/2025 17:11, ichthyo wrote:
The pop-up diagram as such, with all axis and labels is created
with the drawing primitives of FLTK. Only the actual bandwidth
curve, the red line is stroked using lib Cairo.
This was always the case.
The Cairo drawing code remained the same, before and after
Jesper's patch.
When looking into the code, there is one obvious difference
to the situation in the WidgetPDial:
WidgetPDial:
cairo_t* cr = Fl::cairo_make_current(window());
cairo_save(cr);
cairo_translate(cr,cx+dh,cy+dh);
// drawing code
cairo_restore(cr);
VC_SubBandwidthScale in MiscGui.cpp
cairo_t *cr = Fl::cairo_make_current(Fl_Window::current());
cairo_save(cr);
// drawing code
cairo_restore(cr);
I have no idea if this is relevant, but for the Bandwidth diagram
there is no translate, i.e. we use the coordinate system as-is.
Absolute positioning is handled quite differently under X11 than
under Wayland. In fact, Wayland does not support the concept of
"absolute coordinates".
Just guessing here, though...
-- Hermann
_______________________________________________
Yoshimi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yoshimi-devel