Signed-off-by: falkTX <falktx@falktx.com>tags/v1.6
@@ -1,7 +1,12 @@ | |||||
name: build | name: build | ||||
on: [push] | |||||
on: | |||||
push: | |||||
branches: | |||||
- '*' | |||||
pull_request: | |||||
branches: | |||||
- '*' | |||||
env: | env: | ||||
DEBIAN_FRONTEND: noninteractive | DEBIAN_FRONTEND: noninteractive | ||||
HOMEBREW_NO_AUTO_UPDATE: 1 | HOMEBREW_NO_AUTO_UPDATE: 1 | ||||
@@ -2592,6 +2592,11 @@ float nvgText(NVGcontext* ctx, float x, float y, const char* string, const char* | |||||
nvgTransformPoint(&c[6],&c[7], state->xform, q.x0*invscale, q.y1*invscale); | nvgTransformPoint(&c[6],&c[7], state->xform, q.x0*invscale, q.y1*invscale); | ||||
// Create triangles | // Create triangles | ||||
if (nverts+6 <= cverts) { | if (nverts+6 <= cverts) { | ||||
#if NVG_FONT_TEXTURE_FLAGS | |||||
// align font kerning to integer pixel positions | |||||
for (int i = 0; i < 8; ++i) | |||||
c[i] = (int)(c[i] + 0.5f); | |||||
#endif | |||||
nvg__vset(&verts[nverts], c[0], c[1], q.s0, q.t0); nverts++; | nvg__vset(&verts[nverts], c[0], c[1], q.s0, q.t0); nverts++; | ||||
nvg__vset(&verts[nverts], c[4], c[5], q.s1, q.t1); nverts++; | nvg__vset(&verts[nverts], c[4], c[5], q.s1, q.t1); nverts++; | ||||
nvg__vset(&verts[nverts], c[2], c[3], q.s1, q.t0); nverts++; | nvg__vset(&verts[nverts], c[2], c[3], q.s1, q.t0); nverts++; | ||||
@@ -40,6 +40,13 @@ DistrhoPlugin3BandEQ::DistrhoPlugin3BandEQ() | |||||
// ----------------------------------------------------------------------- | // ----------------------------------------------------------------------- | ||||
// Init | // Init | ||||
void DistrhoPlugin3BandEQ::initAudioPort(bool input, uint32_t index, AudioPort& port) | |||||
{ | |||||
port.groupId = kPortGroupStereo; | |||||
Plugin::initAudioPort(input, index, port); | |||||
} | |||||
void DistrhoPlugin3BandEQ::initParameter(uint32_t index, Parameter& parameter) | void DistrhoPlugin3BandEQ::initParameter(uint32_t index, Parameter& parameter) | ||||
{ | { | ||||
switch (index) | switch (index) | ||||
@@ -82,6 +82,7 @@ protected: | |||||
// ------------------------------------------------------------------- | // ------------------------------------------------------------------- | ||||
// Init | // Init | ||||
void initAudioPort(bool input, uint32_t index, AudioPort& port) override; | |||||
void initParameter(uint32_t index, Parameter& parameter) override; | void initParameter(uint32_t index, Parameter& parameter) override; | ||||
void initProgramName(uint32_t index, String& programName) override; | void initProgramName(uint32_t index, String& programName) override; | ||||
@@ -1,7 +1,7 @@ | |||||
/* | /* | ||||
* DISTRHO MVerb, a DPF'ied MVerb. | * DISTRHO MVerb, a DPF'ied MVerb. | ||||
* Copyright (c) 2010 Martin Eastwood | * Copyright (c) 2010 Martin Eastwood | ||||
* Copyright (C) 2015 Filipe Coelho <falktx@falktx.com> | |||||
* Copyright (C) 2015-2022 Filipe Coelho <falktx@falktx.com> | |||||
* | * | ||||
* This program is free software; you can redistribute it and/or | * This program is free software; you can redistribute it and/or | ||||
* modify it under the terms of the GNU General Public License as | * modify it under the terms of the GNU General Public License as | ||||
@@ -34,6 +34,13 @@ DistrhoPluginMVerb::DistrhoPluginMVerb() | |||||
// ----------------------------------------------------------------------- | // ----------------------------------------------------------------------- | ||||
// Init | // Init | ||||
void DistrhoPluginMVerb::initAudioPort(bool input, uint32_t index, AudioPort& port) | |||||
{ | |||||
port.groupId = kPortGroupStereo; | |||||
Plugin::initAudioPort(input, index, port); | |||||
} | |||||
void DistrhoPluginMVerb::initParameter(uint32_t index, Parameter& parameter) | void DistrhoPluginMVerb::initParameter(uint32_t index, Parameter& parameter) | ||||
{ | { | ||||
parameter.unit = "%"; | parameter.unit = "%"; | ||||
@@ -1,7 +1,7 @@ | |||||
/* | /* | ||||
* DISTRHO MVerb, a DPF'ied MVerb. | * DISTRHO MVerb, a DPF'ied MVerb. | ||||
* Copyright (c) 2010 Martin Eastwood | * Copyright (c) 2010 Martin Eastwood | ||||
* Copyright (C) 2015 Filipe Coelho <falktx@falktx.com> | |||||
* Copyright (C) 2015-2022 Filipe Coelho <falktx@falktx.com> | |||||
* | * | ||||
* This program is free software; you can redistribute it and/or | * This program is free software; you can redistribute it and/or | ||||
* modify it under the terms of the GNU General Public License as | * modify it under the terms of the GNU General Public License as | ||||
@@ -73,6 +73,7 @@ protected: | |||||
// ------------------------------------------------------------------- | // ------------------------------------------------------------------- | ||||
// Init | // Init | ||||
void initAudioPort(bool input, uint32_t index, AudioPort& port) override; | |||||
void initParameter(uint32_t index, Parameter& parameter) override; | void initParameter(uint32_t index, Parameter& parameter) override; | ||||
void initProgramName(uint32_t index, String& programName) override; | void initProgramName(uint32_t index, String& programName) override; | ||||
@@ -38,6 +38,13 @@ DistrhoPluginPingPongPan::DistrhoPluginPingPongPan() | |||||
// ----------------------------------------------------------------------- | // ----------------------------------------------------------------------- | ||||
// Init | // Init | ||||
void DistrhoPluginPingPongPan::initAudioPort(bool input, uint32_t index, AudioPort& port) | |||||
{ | |||||
port.groupId = kPortGroupStereo; | |||||
Plugin::initAudioPort(input, index, port); | |||||
} | |||||
void DistrhoPluginPingPongPan::initParameter(uint32_t index, Parameter& parameter) | void DistrhoPluginPingPongPan::initParameter(uint32_t index, Parameter& parameter) | ||||
{ | { | ||||
switch (index) | switch (index) | ||||
@@ -78,6 +78,7 @@ protected: | |||||
// ------------------------------------------------------------------- | // ------------------------------------------------------------------- | ||||
// Init | // Init | ||||
void initAudioPort(bool input, uint32_t index, AudioPort& port) override; | |||||
void initParameter(uint32_t index, Parameter& parameter) override; | void initParameter(uint32_t index, Parameter& parameter) override; | ||||
void initProgramName(uint32_t index, String& programName) override; | void initProgramName(uint32_t index, String& programName) override; | ||||