projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9174858
)
Keep MSVC happy by specifying which version of 'floor()' we want (gtk2_ardour)
author
John Emmas
<johne53@tiscali.co.uk>
Wed, 15 Aug 2018 13:17:18 +0000
(14:17 +0100)
committer
John Emmas
<johne53@tiscali.co.uk>
Wed, 15 Aug 2018 13:17:18 +0000
(14:17 +0100)
gtk2_ardour/plugin_ui.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/plugin_ui.cc
b/gtk2_ardour/plugin_ui.cc
index 444e0a7f0aa754296f6cc4f1bcbb2027c6e2384b..cad8ce9354433efc05b649dbb524051a536ee5b8 100644
(file)
--- a/
gtk2_ardour/plugin_ui.cc
+++ b/
gtk2_ardour/plugin_ui.cc
@@
-309,7
+309,7
@@
PluginLoadStatsGui::draw_bar (GdkEventExpose* ev)
cairo_stroke (cr);
if (xd1 - xd0 > 2) {
- const double ym = .5 + floor (
y0 + h / 2
);
+ const double ym = .5 + floor (
(double)(y0 + h / 2)
);
const int h4 = h / 4;
cairo_set_line_width (cr, 1);