42 |
int h = get_height(); |
int h = get_height(); |
43 |
|
|
44 |
for (int pass = 0 ; pass < 2 ; pass++) { |
for (int pass = 0 ; pass < 2 ; pass++) { |
45 |
for (int x = 0 ; x < w ; x++) { |
for (double x = 0 ; x <= w ; x++) { |
46 |
int vel = int(x * 126.0 / w + 1.5); |
int vel = int(x * (127 - 1e-10) / w + 1); |
47 |
int y = int((1 - (dimreg->*getter)(vel)) * (h - 1)); |
double y = (1 - (dimreg->*getter)(vel)) * (h - 3) + 1.5; |
48 |
|
|
49 |
if (x == 0) { |
if (x < 1e-10) { |
50 |
cr->move_to(x, y); |
cr->move_to(x, y); |
51 |
} else { |
} else { |
52 |
cr->line_to(x, y); |
cr->line_to(x, y); |
53 |
} |
} |
54 |
} |
} |
55 |
if (pass == 0) { |
if (pass == 0) { |
56 |
cr->line_to(w - 1, h - 1); |
cr->line_to(w, h); |
57 |
cr->line_to(0, h - 1); |
cr->line_to(0, h); |
58 |
cr->set_source_rgba(0.5, 0.44, 1.0, 0.2); |
cr->set_source_rgba(0.5, 0.44, 1.0, 0.2); |
59 |
cr->fill(); |
cr->fill(); |
60 |
} else { |
} else { |
86 |
int w = get_width(); |
int w = get_width(); |
87 |
int h = get_height(); |
int h = get_height(); |
88 |
|
|
89 |
|
cr->translate(1.5, 0); |
90 |
for (int pass = 0 ; pass < 2 ; pass++) { |
for (int pass = 0 ; pass < 2 ; pass++) { |
91 |
cr->move_to(dimreg->Crossfade.in_start / 127.0 * (w - 4) + 2, h); |
cr->move_to(dimreg->Crossfade.in_start / 127.0 * (w - 3), h); |
92 |
cr->line_to(dimreg->Crossfade.in_end / 127.0 * (w - 4) + 2, 2); |
cr->line_to(dimreg->Crossfade.in_end / 127.0 * (w - 3), 1.5); |
93 |
cr->line_to(dimreg->Crossfade.out_start / 127.0 * (w - 4) + 2, 2); |
cr->line_to(dimreg->Crossfade.out_start / 127.0 * (w - 3), 1.5); |
94 |
cr->line_to(dimreg->Crossfade.out_end / 127.0 * (w - 4) + 2, h); |
cr->line_to(dimreg->Crossfade.out_end / 127.0 * (w - 3), h); |
95 |
|
|
96 |
if (pass == 0) { |
if (pass == 0) { |
|
cr->line_to(dimreg->Crossfade.in_start / 127.0 * (w - 4) + 2, |
|
|
h); |
|
97 |
cr->set_source_rgba(0.5, 0.44, 1.0, 0.2); |
cr->set_source_rgba(0.5, 0.44, 1.0, 0.2); |
98 |
cr->fill(); |
cr->fill(); |
99 |
} else { |
} else { |