13
0

prefer ARDOUR::ui_scale_factor over ARDOUR::ui_scale_factor

This commit is contained in:
Robin Gareus 2021-12-24 21:56:00 +01:00
parent 8221b22ffd
commit 4fa8af3e20
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 1 additions and 6 deletions

View File

@ -182,9 +182,6 @@ class LIBARDOUR_API LV2Plugin : public ARDOUR::Plugin, public ARDOUR::Workee
static void set_global_ui_contrasting_color (uint32_t c) {
_ui_contrasting_color = c;
}
static void set_global_ui_scale_factor (float s) {
_ui_scale_factor = s;
}
static void set_global_ui_style_boxy (bool yn) {
_ui_style_boxy = yn ? 1 : 0;
}
@ -346,7 +343,6 @@ class LIBARDOUR_API LV2Plugin : public ARDOUR::Plugin, public ARDOUR::Workee
static uint32_t _ui_background_color;
static uint32_t _ui_foreground_color;
static uint32_t _ui_contrasting_color;
static float _ui_scale_factor;
static unsigned long _ui_transient_win_id;
mutable unsigned _state_version;

View File

@ -135,7 +135,6 @@ int32_t LV2Plugin::_ui_style_boxy = 0;
uint32_t LV2Plugin::_ui_background_color = 0x000000ff; // RGBA
uint32_t LV2Plugin::_ui_foreground_color = 0xffffffff; // RGBA
uint32_t LV2Plugin::_ui_contrasting_color = 0x33ff33ff; // RGBA
float LV2Plugin::_ui_scale_factor = 1.0;
unsigned long LV2Plugin::_ui_transient_win_id = 0;
class LV2World : boost::noncopyable {
@ -576,7 +575,7 @@ LV2Plugin::init(const void* c_plugin, samplecnt_t rate)
{ LV2_OPTIONS_INSTANCE, 0, _uri_map.uri_to_id("http://lv2plug.in/ns/extensions/ui#contrastingColor"),
sizeof(int32_t), atom_Int, &_ui_contrasting_color },
{ LV2_OPTIONS_INSTANCE, 0, _uri_map.uri_to_id("http://lv2plug.in/ns/extensions/ui#scaleFactor"),
sizeof(float), atom_Float, &_ui_scale_factor },
sizeof(float), atom_Float, &ARDOUR::ui_scale_factor },
{ LV2_OPTIONS_INSTANCE, 0, _uri_map.uri_to_id("http://ardour.org/lv2/theme/#styleBoxy"),
sizeof(int32_t), atom_Bool, &_ui_style_boxy },
{ LV2_OPTIONS_INSTANCE, 0, _uri_map.uri_to_id("http://ardour.org/lv2/theme/#styleFlat"),