+// painter.fill(eRect(0, 10, s.width(), s.height()-20));
+
+ pts_t in = 0, out = 0;
+
+ std::multiset<cueEntry>::iterator i(m_cue_entries.begin());
+
+ while (1)
+ {
+ if (i == m_cue_entries.end())
+ out = m_length;
+ else {
+ if (i->what == 0) /* in */
+ {
+ in = i++->where;
+ continue;
+ } else if (i->what == 1) /* out */
+ out = i++->where;
+ else /* mark */
+ {
+ int xm = scale(i->where);
+ painter.setForegroundColor(gRGB(0xFF8080));
+ painter.fill(eRect(xm - 2, 0, 4, s.height()));
+ i++;
+ continue;
+ }
+ }
+
+ painter.setForegroundColor(gRGB(0x225b7395));
+ int xi = scale(in), xo = scale(out);
+ painter.fill(eRect(xi, 10, xo-xi, s.height()-14));
+ in = m_length;
+
+ if (i == m_cue_entries.end())
+ break;
+ }
+// painter.setForegroundColor(gRGB(0x00000000));
+ painter.setForegroundColor(gRGB(0x225b7395));
+ painter.fill(eRect(s.width() - 2, 2, s.width() - 1, s.height() - 4));
+ painter.fill(eRect(0, 2, 2, s.height() - 4));