mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 03:36:32 +01:00
NO-OP: whitespace
This commit is contained in:
parent
b47bfc0121
commit
6bbb2c72f0
1 changed files with 29 additions and 29 deletions
|
|
@ -162,19 +162,19 @@ Ruler::render (Rect const & area, Cairo::RefPtr<Cairo::Context> cr) const
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (m->style) {
|
switch (m->style) {
|
||||||
case Mark::Major:
|
case Mark::Major:
|
||||||
if (_divide_height >= 0) {
|
if (_divide_height >= 0) {
|
||||||
cr->rel_line_to (0, -_divide_height);
|
cr->rel_line_to (0, -_divide_height);
|
||||||
} else {
|
} else {
|
||||||
cr->rel_line_to (0, -height);
|
cr->rel_line_to (0, -height);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case Mark::Minor:
|
case Mark::Minor:
|
||||||
cr->rel_line_to (0, -height/3.0);
|
cr->rel_line_to (0, -height/3.0);
|
||||||
break;
|
break;
|
||||||
case Mark::Micro:
|
case Mark::Micro:
|
||||||
cr->rel_line_to (0, -height/5.0);
|
cr->rel_line_to (0, -height/5.0);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
cr->stroke ();
|
cr->stroke ();
|
||||||
|
|
||||||
|
|
@ -186,31 +186,31 @@ Ruler::render (Rect const & area, Cairo::RefPtr<Cairo::Context> cr) const
|
||||||
layout->set_text (m->label);
|
layout->set_text (m->label);
|
||||||
logical = layout->get_pixel_logical_extents ();
|
logical = layout->get_pixel_logical_extents ();
|
||||||
|
|
||||||
if (_divide_height >= 0) {
|
if (_divide_height >= 0) {
|
||||||
cr->move_to (pos.x + 2.0, self.y0 + _divide_height + logical.get_y() + 2.0); /* 2 pixel padding below divider */
|
cr->move_to (pos.x + 2.0, self.y0 + _divide_height + logical.get_y() + 2.0); /* 2 pixel padding below divider */
|
||||||
} else {
|
} else {
|
||||||
cr->move_to (pos.x + 2.0, self.y0 + logical.get_y());
|
cr->move_to (pos.x + 2.0, self.y0 + logical.get_y());
|
||||||
}
|
}
|
||||||
layout->show_in_cairo_context (cr);
|
layout->show_in_cairo_context (cr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_divide_height >= 0.0) {
|
if (_divide_height >= 0.0) {
|
||||||
|
|
||||||
cr->set_line_width (1.0);
|
cr->set_line_width (1.0);
|
||||||
|
|
||||||
set_source_rgba (cr, _divider_color_top);
|
set_source_rgba (cr, _divider_color_top);
|
||||||
cr->move_to (self.x0, self.y0 + _divide_height-1.0+0.5);
|
cr->move_to (self.x0, self.y0 + _divide_height-1.0+0.5);
|
||||||
cr->line_to (self.x1, self.y0 + _divide_height-1.0+0.5);
|
cr->line_to (self.x1, self.y0 + _divide_height-1.0+0.5);
|
||||||
cr->stroke ();
|
cr->stroke ();
|
||||||
|
|
||||||
set_source_rgba (cr, _divider_color_bottom);
|
set_source_rgba (cr, _divider_color_bottom);
|
||||||
cr->move_to (self.x0, self.y0 + _divide_height+0.5);
|
cr->move_to (self.x0, self.y0 + _divide_height+0.5);
|
||||||
cr->line_to (self.x1, self.y0 + _divide_height+0.5);
|
cr->line_to (self.x1, self.y0 + _divide_height+0.5);
|
||||||
cr->stroke ();
|
cr->stroke ();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* done! */
|
/* done! */
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue