Fix non-debug builds; Special DPF tweaks; Disable auto-save
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
6fbd38b858
commit
c19b9fd34d
6 changed files with 22 additions and 9 deletions
2
dpf
2
dpf
|
@ -1 +1 @@
|
|||
Subproject commit d8f66c1e06cafedf000fe75afcf67b96b3efbc6c
|
||||
Subproject commit a1322bc0c5814633ec3c82080540a2657f4f4486
|
|
@ -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();
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
#pragma once
|
||||
#undef DEBUG
|
||||
|
||||
#ifdef NDEBUG
|
||||
# undef DEBUG
|
||||
#endif
|
||||
|
||||
#include "OpenGL.hpp"
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
|
||||
#include <common.hpp> // for fopen_u8
|
||||
|
||||
#ifdef NDEBUG
|
||||
# undef DEBUG
|
||||
#endif
|
||||
#include "OpenGL.hpp"
|
||||
|
||||
#define BLENDISH_IMPLEMENTATION
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue