diff options
author | John Emmas <johne53@tiscali.co.uk> | 2014-03-21 18:24:36 +0000 |
---|---|---|
committer | John Emmas <johne53@tiscali.co.uk> | 2014-03-21 18:24:36 +0000 |
commit | abab819bb361efc71a090650570f08bf5495c826 (patch) | |
tree | d50862b448f31b90f17d81822555a713b56ef399 /libs | |
parent | 2044c12b7b8ced90073c494b4af6f049e6c6020b (diff) |
Avoid some ambiguous calls to 'floor()' which were upsetting MSVC
Diffstat (limited to 'libs')
-rw-r--r-- | libs/gtkmm2ext/fastmeter.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/gtkmm2ext/fastmeter.cc b/libs/gtkmm2ext/fastmeter.cc index d4eb21b5e2..df3f09735e 100644 --- a/libs/gtkmm2ext/fastmeter.cc +++ b/libs/gtkmm2ext/fastmeter.cc @@ -592,7 +592,7 @@ FastMeter::vertical_expose (cairo_t* cr, cairo_rectangle_t* area) last_peak_rect.width = pixwidth; last_peak_rect.y = max(1, 1 + pixheight - (int) floor (pixheight * current_peak)); if (_styleflags & 2) { // LED stripes - last_peak_rect.y = max(0, 2 * (int) floor (last_peak_rect.y / 2)); + last_peak_rect.y = max(0, (last_peak_rect.y & (~1))); } if (bright_hold || (_styleflags & 2)) { last_peak_rect.height = max(0, min(3, pixheight - last_peak_rect.y - 1 )); @@ -791,7 +791,7 @@ FastMeter::queue_vertical_redraw (const Glib::RefPtr<Gdk::Window>& win, float ol rect.x = 1; rect.y = max(1, 1 + pixheight - (int) floor (pixheight * current_peak)); if (_styleflags & 2) { // LED stripes - rect.y = max(0, 2 * (int) floor (rect.y / 2)); + rect.y = max(0, (rect.y & (~1))); } if (bright_hold || (_styleflags & 2)) { rect.height = max(0, min(3, pixheight - last_peak_rect.y -1 )); |