Thomas Hellstr?m wrote: > > Could you please explain how just moving this line: > > > > sub = viaAccelClippingHelper(cb, (y1 < y2) ? y1 : y2, tdc); > > > > some 25 lines further up fixes the out-of-bounds drawing? > > It alters tdc->cmd, which is read a couple of lines later on. Ah, of course. Thanks. Benno