diff options
author | John Emmas <johne53@tiscali.co.uk> | 2013-10-03 09:06:56 +0100 |
---|---|---|
committer | John Emmas <johne53@tiscali.co.uk> | 2013-10-03 09:06:56 +0100 |
commit | f8574fc39db29188958f8aebb5b8544ae015718e (patch) | |
tree | b4049b95fa94b58f5981af5b8beaa625dd6074f7 /gtk2_ardour/rc_option_editor.cc | |
parent | d382925fba75aa440db696c2ad3468e6463dc30a (diff) |
'gtk2_ardour' - Add namespaces + casting where necessary + general bits of 'correctness' to keep MSVC happy
Diffstat (limited to 'gtk2_ardour/rc_option_editor.cc')
-rw-r--r-- | gtk2_ardour/rc_option_editor.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc index 04b3b5a8c2..5b61712ae3 100644 --- a/gtk2_ardour/rc_option_editor.cc +++ b/gtk2_ardour/rc_option_editor.cc @@ -527,7 +527,7 @@ public: _dpi_adjustment (50, 50, 250, 1, 10), _dpi_slider (_dpi_adjustment) { - _dpi_adjustment.set_value (floor (_rc_config->get_font_scale () / 1024)); + _dpi_adjustment.set_value (floor ((double)(_rc_config->get_font_scale () / 1024))); Label* l = manage (new Label (_("Font scaling:"))); l->set_name ("OptionsLabel"); @@ -546,7 +546,7 @@ public: void parameter_changed (string const & p) { if (p == "font-scale") { - _dpi_adjustment.set_value (floor (_rc_config->get_font_scale() / 1024)); + _dpi_adjustment.set_value (floor ((double)(_rc_config->get_font_scale() / 1024))); } } |