waveform drawing improvements
    * handle logscaled and rectified
    * put dark tips in right places
    * improve color selection algorithm
fix incorrect coordinate space when drawing first poly-curve line
some prep work for generally handling dbl-click on draggable objects
fix unused argument warning
fixed const cast warning
properly restore newer (cairo-canvas related) UI config parameters