13
0

remove cruft (unused UI::ui_scale)

This commit is contained in:
Robin Gareus 2017-05-05 13:59:48 +02:00
parent 8335155863
commit 401eefec1c
3 changed files with 2 additions and 5 deletions

View File

@ -48,9 +48,8 @@ CairoIcon::set_fg (uint32_t color)
void
CairoIcon::render (cairo_t* cr , cairo_rectangle_t* area)
{
const double scale = UI::instance()->ui_scale;
int width = get_width() * scale;
int height = get_height () * scale;
int width = get_width();
int height = get_height ();
ArdourIcon::render (cr, icon_type, width, height, Off, fg);
}

View File

@ -55,7 +55,6 @@ using namespace PBD;
using std::map;
UI* UI::theGtkUI = 0;
float UI::ui_scale = 1.0;
BaseUI::RequestType Gtkmm2ext::NullMessage = BaseUI::new_request_type();
BaseUI::RequestType Gtkmm2ext::ErrorMessage = BaseUI::new_request_type();

View File

@ -166,7 +166,6 @@ public:
sigc::signal<void> theme_changed;
static bool just_hide_it (GdkEventAny *, Gtk::Window *);
static float ui_scale;
Gtkmm2ext::Bindings* global_bindings;