Browse Source

Merge branch 'DISTRHO:main' into CVfunk

tags/24.12
CV funk GitHub 10 months ago
parent
commit
3b22994bcc
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
4 changed files with 13 additions and 11 deletions
  1. +1
    -1
      .github/workflows/build.yml
  2. +1
    -1
      dpf
  3. +10
    -5
      include/plugincontext.hpp
  4. +1
    -4
      src/CardinalUI.cpp

+ 1
- 1
.github/workflows/build.yml View File

@@ -160,7 +160,7 @@ jobs:
strategy: strategy:
matrix: matrix:
target: [universal-10.15] target: [universal-10.15]
runs-on: macos-11
runs-on: macos-12
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:


+ 1
- 1
dpf

@@ -1 +1 @@
Subproject commit 8f10cdc4f11a256f597fc39a7ac6de38a28cef57
Subproject commit 470c5b7a77091bbea2154cd1d96d3cb1be737aa3

+ 10
- 5
include/plugincontext.hpp View File

@@ -20,12 +20,7 @@ struct Message;
// Base DISTRHO classes // Base DISTRHO classes


#ifndef DISTRHO_DETAILS_HPP_INCLUDED #ifndef DISTRHO_DETAILS_HPP_INCLUDED

namespace CardinalDISTRHO { namespace CardinalDISTRHO {

class Plugin;
class UI;

struct MidiEvent { struct MidiEvent {
static const uint32_t kDataSize = 4; static const uint32_t kDataSize = 4;
uint32_t frame; uint32_t frame;
@@ -33,9 +28,19 @@ struct MidiEvent {
uint8_t data[kDataSize]; uint8_t data[kDataSize];
const uint8_t* dataExt; const uint8_t* dataExt;
}; };
}
#endif


#ifndef DISTRHO_PLUGIN_HPP_INCLUDED
namespace CardinalDISTRHO {
class Plugin;
} }
#endif


#ifndef DISTRHO_UI_HPP_INCLUDED
namespace CardinalDISTRHO {
class UI;
}
#endif #endif


// -------------------------------------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------------------------------------


+ 1
- 4
src/CardinalUI.cpp View File

@@ -1041,10 +1041,7 @@ protected:
if (inSelfTest) return false; if (inSelfTest) return false;
#endif #endif


rack::math::Vec scrollDelta = rack::math::Vec(-ev.delta.getX(), ev.delta.getY());
#ifndef DISTRHO_OS_MAC
scrollDelta = scrollDelta.mult(50.0);
#endif
const rack::math::Vec scrollDelta = rack::math::Vec(-ev.delta.getX(), ev.delta.getY());


const int mods = glfwMods(ev.mod); const int mods = glfwMods(ev.mod);
const ScopedContext sc(this, mods); const ScopedContext sc(this, mods);


Loading…
Cancel
Save