Skip to content

Commit

Permalink
Automatically scale
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Aug 14, 2021
1 parent ede705e commit e2a02f8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dpf
Submodule dpf updated 45 files
+1 −1 .github/workflows/cmake.yml
+234 −0 .github/workflows/example-plugins.yml
+70 −0 .github/workflows/makefile.yml
+0 −44 .travis.yml
+0 −18 .travis/before_install.sh
+0 −29 .travis/install.sh
+0 −23 .travis/script-linux.sh
+0 −17 .travis/script-macos.sh
+0 −20 .travis/script-win32.sh
+0 −20 .travis/script-win64.sh
+47 −4 Makefile.base.mk
+9 −3 Makefile.plugins.mk
+7 −2 cmake/DPF-plugin.cmake
+5 −0 dgl/Geometry.hpp
+4 −1 dgl/Makefile
+8 −0 dgl/TopLevelWidget.hpp
+4 −0 dgl/Widget.hpp
+5 −0 dgl/src/ApplicationPrivateData.cpp
+25 −12 dgl/src/Cairo.cpp
+6 −0 dgl/src/Geometry.cpp
+15 −4 dgl/src/ImageBaseWidgets.cpp
+7 −4 dgl/src/OpenGL.cpp
+34 −2 dgl/src/TopLevelWidget.cpp
+18 −11 dgl/src/Window.cpp
+6 −5 dgl/src/WindowPrivateData.cpp
+60 −4 dgl/src/pugl.cpp
+15 −2 dgl/src/pugl.hpp
+1 −1 distrho/DistrhoUtils.hpp
+4 −0 distrho/extra/LibraryUtils.hpp
+4 −4 distrho/extra/String.hpp
+6 −5 distrho/src/DistrhoDefines.h
+1 −1 distrho/src/DistrhoPluginLV2.cpp
+1 −1 distrho/src/DistrhoPluginLV2export.cpp
+50 −5 distrho/src/DistrhoPluginVST2.cpp
+15 −3 distrho/src/DistrhoUIInternal.hpp
+5 −5 distrho/src/DistrhoUIPrivateData.hpp
+8 −3 distrho/src/jackbridge/JackBridge.cpp
+40 −5 distrho/src/jackbridge/RtAudioBridge.hpp
+0 −1 examples/CairoUI/CMakeLists.txt
+45 −17 examples/CairoUI/CairoExampleUI.cpp
+0 −86 examples/CairoUI/DemoWidgetClickable.cpp
+63 −5 examples/CairoUI/DemoWidgetClickable.hpp
+0 −1 examples/CairoUI/Makefile
+4 −4 examples/FileHandling/NanoButton.cpp
+13 −2 examples/Info/InfoExampleUI.cpp
5 changes: 4 additions & 1 deletion plugins/AmplitudeImposer/DistrhoUIAmplitudeImposer.cpp
@@ -1,7 +1,7 @@
/*
* DISTRHO AmplitudeImposer, a DPF'ied AmplitudeImposer.
* Copyright (C) 2004 Niall Moody
* Copyright (C) 2015 Filipe Coelho <falktx@falktx.com>
* Copyright (C) 2015-2021 Filipe Coelho <falktx@falktx.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
Expand Down Expand Up @@ -54,6 +54,9 @@ DistrhoUIAmplitudeImposer::DistrhoUIAmplitudeImposer()

// set initial values
programLoaded(0);

// automatically-scale
setGeometryConstraints(Art::backWidth, Art::backHeight, true, true);
}

// -----------------------------------------------------------------------
Expand Down
5 changes: 4 additions & 1 deletion plugins/CycleShifter/DistrhoUICycleShifter.cpp
@@ -1,7 +1,7 @@
/*
* DISTRHO CycleShifter, a DPF'ied CycleShifter.
* Copyright (C) 2004 Niall Moody
* Copyright (C) 2015 Filipe Coelho <falktx@falktx.com>
* Copyright (C) 2015-2021 Filipe Coelho <falktx@falktx.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
Expand Down Expand Up @@ -54,6 +54,9 @@ DistrhoUICycleShifter::DistrhoUICycleShifter()

// set initial values
programLoaded(0);

// automatically-scale
setGeometryConstraints(Art::backWidth, Art::backHeight, true, true);
}

// -----------------------------------------------------------------------
Expand Down
5 changes: 4 additions & 1 deletion plugins/SoulForce/DistrhoUISoulForce.cpp
@@ -1,7 +1,7 @@
/*
* DISTRHO SoulForce, a DPF'ied SoulForce.
* Copyright (C) 2006 Niall Moody
* Copyright (C) 2015 Filipe Coelho <falktx@falktx.com>
* Copyright (C) 2015-2021 Filipe Coelho <falktx@falktx.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
Expand Down Expand Up @@ -76,6 +76,9 @@ DistrhoUISoulForce::DistrhoUISoulForce()

// set initial values
programLoaded(0);

// automatically-scale
setGeometryConstraints(Art::backgroundWidth, Art::backgroundHeight, true, true);
}

// -----------------------------------------------------------------------
Expand Down

0 comments on commit e2a02f8

Please sign in to comment.