minimum width of bold waveforms set to 2*tk_scaling, so will be visible even if zoomed out a lot

This commit is contained in:
stefan schippers 2025-09-20 21:58:36 +02:00
parent cfff96093d
commit 9f11ff4924
1 changed files with 2 additions and 0 deletions

View File

@ -2508,7 +2508,9 @@ static void set_thick_waves(int what, int wcnt, int wave_col, Graph_ctx *gr)
dbg(1, "set_thick_waves(): what=%d\n", what);
if(what) {
if(gr->hilight_wave == wcnt) {
int min = (int) tk_scaling * 2;
values.line_width = XLINEWIDTH(2.4 * gr->linewidth_mult * xctx->lw);
if(values.line_width < min) values.line_width = min;
XChangeGC(display, xctx->gc[wave_col], valuemask, &values);
}
} else {