Fix non-debug builds; Special DPF tweaks; Disable auto-save

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2021-10-09 03:22:04 +01:00
parent 6fbd38b858
commit c19b9fd34d
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
6 changed files with 22 additions and 9 deletions

2
dpf

@ -1 +1 @@
Subproject commit d8f66c1e06cafedf000fe75afcf67b96b3efbc6c
Subproject commit a1322bc0c5814633ec3c82080540a2657f4f4486

View file

@ -32,7 +32,9 @@
#include <osdialog.h>
#undef DEBUG
#ifdef NDEBUG
# undef DEBUG
#endif
#include "DistrhoPlugin.hpp"
START_NAMESPACE_DISTRHO
@ -54,6 +56,7 @@ struct Initializer {
using namespace rack;
settings::devMode = true;
settings::autosaveInterval = 0;
system::init();
asset::init();
logger::init();

View file

@ -24,7 +24,9 @@
#include <ui/common.hpp>
#include <window/Window.hpp>
#undef DEBUG
#ifdef NDEBUG
# undef DEBUG
#endif
#include "DistrhoUI.hpp"
#include "ResizeHandle.hpp"

View file

@ -1,3 +1,7 @@
#pragma once
#undef DEBUG
#ifdef NDEBUG
# undef DEBUG
#endif
#include "OpenGL.hpp"

View file

@ -15,7 +15,9 @@
#include <plugin.hpp> // used in Window::screenshot
#include <system.hpp> // used in Window::screenshot
#undef DEBUG
#ifdef NDEBUG
# undef DEBUG
#endif
#include "DistrhoUI.hpp"
namespace rack {
@ -74,7 +76,7 @@ struct Window::Internal {
int frame = 0;
bool ignoreNextMouseDelta = false;
int frameSwapInterval = -1;
int frameSwapInterval = 1;
double monitorRefreshRate = 60.0; // FIXME
double frameTime = 0.0;
double lastFrameDuration = 0.0;
@ -102,8 +104,7 @@ Window::Window() {
INFO("UI pointer: %p", lastUI);
vg = lastUI->getContext();
INFO("NanoVG context: %p", vg);
// fbVg = nvgCreateSharedGL2(vg, nvgFlags);
fbVg = nvgCreateSharedGL2(vg, NVG_ANTIALIAS);
// Load default Blendish font
uiFont = loadFont(asset::system("res/fonts/DejaVuSans.ttf"));
@ -154,7 +155,7 @@ void Window::step() {
double t1 = 0.0, t2 = 0.0, t3 = 0.0, t4 = 0.0, t5 = 0.0;
// Make event handlers and step() have a clean NanoVG context
nvgReset(vg);
// nvgReset(vg);
bndSetFont(uiFont->handle);

View file

@ -2,6 +2,9 @@
#include <common.hpp> // for fopen_u8
#ifdef NDEBUG
# undef DEBUG
#endif
#include "OpenGL.hpp"
#define BLENDISH_IMPLEMENTATION