remove cruft (unused UI::ui_scale)
authorRobin Gareus <robin@gareus.org>
Fri, 5 May 2017 11:59:48 +0000 (13:59 +0200)
committerRobin Gareus <robin@gareus.org>
Fri, 5 May 2017 12:00:30 +0000 (14:00 +0200)
libs/gtkmm2ext/cairo_icon.cc
libs/gtkmm2ext/gtk_ui.cc
libs/gtkmm2ext/gtkmm2ext/gtk_ui.h

index 11b37264c2a0d9f9a9627c1afef11559e489ba46..0191d395827cb81e24a49d2bd94a5a889f6230c9 100644 (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);
 }
index 3ec7817edc79b4b78931f597266286d5211ab2fc..c2210bba934714a12f58255befdd0954140e28d4 100644 (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();
index 6a66d0f302e47f92d494662076cc843762c54abd..1ee972c5a5f4b521ea2c59fe3debab1fd6e1214d 100644 (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;