gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

commit 411885df252d7327962e0732235d13546e4e6cc8
parent 982cc131330d870602ca14746b472aca1db59638
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Sun, 18 Aug 2024 17:15:05 +0200

set component name of drawable in debug builds, for easier debugging

Diffstat:
Msource/juceUiLib/editor.cpp | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/source/juceUiLib/editor.cpp b/source/juceUiLib/editor.cpp @@ -37,6 +37,9 @@ namespace genericUI if (!data) throw std::runtime_error("Failed to find image named " + dataName); auto drawable = juce::Drawable::createFromImageData(data, dataSize); +#ifdef _DEBUG + drawable->setName(dataName); +#endif m_drawables.insert(std::make_pair(texture, std::move(drawable))); }