if(selected)color=color_darken(color,1.3f);
gc->set_rgb_fg_color(color);
-
switch(tp.get_after())
{
case INTERPOLATION_TCB:
//normal line/text color
gc->set_rgb_fg_color(Gdk::Color("#333333"));
- //draw these lines... (always 5 between) maybe 6?
- const int subdiv = 4;
-
int ifps = round_to_int(fps);
if (ifps < 1) ifps = 1;
if (next == ranges.end()) next--;
if (abs(*next - midrange) < abs(*iter - midrange))
- scale = *next;
- else
- scale = *iter;
+ iter = next;
- //synfig::info("Range found: (l %.2lf,u %.2lf - m %.2lf) -> %.2lf",lowerrange,upperrange,midrange,scale);
-
- //search around this area to get the right one
+ scale = *iter;
+ if (iter != ranges.begin()) iter--;
+ if (iter != ranges.begin()) iter--;
+ if (iter != ranges.begin()) iter--;
+ // subdivide into this many tick marks (8 or less)
+ const int subdiv = round_to_int(scale / *iter);
//get first valid line and its position in pixel space
double time = 0;
double start = adj_timescale->get_lower(),
end = adj_timescale->get_upper();
-
if(dragscroll)
{
if(event->time-last_event_time<30)