- draw_unresolved_period(p, h, left, right,
+ const vector<Row> rows(_decoder_stack->get_visible_rows());
+ for (size_t i = 0; i < rows.size(); i++)
+ {
+ const Row &row = rows[i];
+ vector<Annotation> annotations;
+ _decoder_stack->get_annotation_subset(annotations, row,
+ start_sample, end_sample);
+ if (!annotations.empty()) {
+ BOOST_FOREACH(const Annotation &a, annotations)
+ draw_annotation(a, p, get_text_colour(),
+ annotation_height, left, right,
+ samples_per_pixel, pixels_offset, y, i);
+ y += row_height;
+ }
+ }
+
+ // Draw the hatching
+ draw_unresolved_period(p, annotation_height, left, right,