Browse Source

Update carla and dpf; Fix scale factor

tags/v1.0
falkTX 3 years ago
parent
commit
1e42fc0879
3 changed files with 11 additions and 5 deletions
  1. +1
    -1
      carla
  2. +1
    -1
      dpf
  3. +9
    -3
      plugins/Common/IldaeilUI.cpp

+ 1
- 1
carla

@@ -1 +1 @@
Subproject commit ae6e2c575cb438a664ae63579fab260c92a8c845
Subproject commit e081724910356d5bbb6fb5cc3b6dadc3d4503028

+ 1
- 1
dpf

@@ -1 +1 @@
Subproject commit 87986a6f343a937dea4f3db3a591beacea8251e2
Subproject commit bea5f6f9c39c4977b641234f3c812ac1f7298bf9

+ 9
- 3
plugins/Common/IldaeilUI.cpp View File

@@ -54,8 +54,8 @@ using namespace CarlaBackend;

class IldaeilUI : public UI, public Thread
{
static constexpr const uint kInitialWidth = 1280;
static constexpr const uint kInitialHeight = 720;
static constexpr const uint kInitialWidth = 1220;
static constexpr const uint kInitialHeight = 640;
static constexpr const uint kBottomHeight = 35;

enum {
@@ -102,6 +102,11 @@ public:

fPlugin->setUI(this);

const double scaleFactor = getScaleFactor();

if (d_isNotEqual(scaleFactor, 1.0))
setSize(kInitialWidth * scaleFactor, kInitialHeight * scaleFactor);

const CarlaHostHandle handle = fPlugin->fCarlaHostHandle;

if (carla_get_current_plugin_count(handle) != 0)
@@ -235,7 +240,8 @@ protected:
carla_show_custom_ui(fPlugin->fCarlaHostHandle, 0, false);

fDrawingState = kDrawingPluginList;
setSize(kInitialWidth, kInitialHeight);
const double scaleFactor = getScaleFactor();
setSize(kInitialWidth * scaleFactor, kInitialHeight * scaleFactor);
return ImGui::End();
}



Loading…
Cancel
Save