projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c9bb7d
)
remove a float loop counter
author
Robin Gareus
<robin@gareus.org>
Sat, 5 Sep 2015 13:47:00 +0000
(15:47 +0200)
committer
Robin Gareus
<robin@gareus.org>
Sat, 5 Sep 2015 13:47:00 +0000
(15:47 +0200)
libs/gtkmm2ext/fastmeter.cc
patch
|
blob
|
history
diff --git
a/libs/gtkmm2ext/fastmeter.cc
b/libs/gtkmm2ext/fastmeter.cc
index 3d28253c41f33fb91b4e7b819eb00716c9eddad3..4183d372eed53736e7f73959e710de57357bcea6 100644
(file)
--- a/
libs/gtkmm2ext/fastmeter.cc
+++ b/
libs/gtkmm2ext/fastmeter.cc
@@
-240,7
+240,10
@@
FastMeter::generate_meter_pattern (
cairo_set_line_width(tc, 1.0);
cairo_set_source_rgba(tc, .0, .0, .0, 0.4);
//cairo_set_operator (tc, CAIRO_OPERATOR_SOURCE);
- for (float y=0.5; y < height; y+= 2.0) {
+ for (int i = 0; float y = 0.5 + i * 2.0; ++i) {
+ if (y >= height) {
+ break;
+ }
cairo_move_to(tc, 0, y);
cairo_line_to(tc, width, y);
cairo_stroke (tc);