1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00
Commit graph

11747 commits

Author SHA1 Message Date
reuk
6bcf603f2c
AppDelegate: Ensure correct lifetime of static objects
Arranges declarations of objects with static storage duration to ensure
correct lifetimes.
2021-03-05 11:26:22 +00:00
reuk
7a0b17c0d3 LinuxComponentPeer: Fix scaling in custom windows created by plugins
Previously, things like PopupMenus which were created in their own
windows were not being scaled correctly on HiDPI displays on Linux.

This patch forces the display scale to 1.0 in plugins, meaning that
the transform applied to the main plugin window is the sole source
of truth for component scaling in plugins.
2021-03-04 13:56:03 +00:00
reuk
fd2f866dd1 FileChooser: Avoid throwing bad_weak_ptr
It seems like shared_from_this may not be enabled when a unique_ptr is
assigned to a shared_ptr (although it *should* be enabled when
constructing a new shared_ptr from a unique_ptr). Functions that return
objects that may need to use shared_from_this now return shared_ptr,
just to be safe.

Additionally, in some cases, shared_from_this was being called from
Thread::run after the last reference to the shared object had been
released. We now call shared_from_this during 'open', which will always
run on the message thread while at least once reference to the shared
object is alive.
2021-03-03 19:21:43 +00:00
ed
1ff7fc38b1 Windows: Added ScopedDeviceContext helper 2021-03-02 15:56:55 +00:00
ed
f6338c0f8e Windows: Added ScopedThreadDPIAwarenessSetter for correctly setting and resetting thread DPI-awareness for methods which interact with an HWND and removed some DPI workarounds 2021-03-02 15:56:10 +00:00
ed
3a0af69eff AudioPluginHost: Added an application-level setting for scaling plug-ins on Windows 2021-03-02 15:53:45 +00:00
ed
b1253bfc74 Added JUCE_DECLARE_NON_MOVEABLE macro 2021-03-02 15:53:24 +00:00
reuk
75fae3bf21
AU: Fix midi output to use correct packet alignment on ARM 2021-03-02 11:15:51 +00:00
reuk
45409bb4e6
FileChooser: Hide chooser when it leaves scope on Windows 2021-03-02 10:49:39 +00:00
ed
e813531d9b VST3: Fixed an issue with jumpy resizing when using a fixed aspect ratio 2021-02-26 09:35:19 +00:00
reuk
10c77ce296
AAX: Set nonrealtime state appropriately when rendering with AudioSuite 2021-02-24 12:41:37 +00:00
reuk
552c7fcc3d
Convolution: Update documentation for prepare function 2021-02-24 12:41:37 +00:00
reuk
1817c54169 CMake: Add Unity build back in for PIPs 2021-02-23 18:33:55 +00:00
reuk
75dc9f8da5 SamplerDemo: Set appropriate plugin characteristics by default 2021-02-23 18:05:06 +00:00
reuk
69b630a2c0 CoreMidi: Use RAII to avoid potential leaks of MIDI ports/endpoints 2021-02-23 18:05:06 +00:00
reuk
a48a564f9e AU: Use slightly more readable channel type 2021-02-23 18:05:06 +00:00
reuk
3dcd2759e6 MultiOutSynthPluginDemo: Implement isBusesLayoutSupported 2021-02-23 18:05:06 +00:00
reuk
ba62771d0e Demos: Use correct string encoding 2021-02-23 18:05:06 +00:00
reuk
f68ee25b52 CMake: Automatically set archiving-related properties when generating for Xcode 2021-02-23 18:05:06 +00:00
reuk
d6376e710f CMake: Use correct include paths when invoking rez 2021-02-23 18:05:06 +00:00
reuk
01f01e7d6e MidiBuffer: Ensure correct number of events are removed by clear function 2021-02-23 18:05:06 +00:00
ed
7c96f18663 TextEditor: Fixed a bug where the horizontal viewport scrollbar could be shown unnecessarily 2021-02-23 17:02:55 +00:00
ed
e18284978f FileChooser: Check JUCE_MODAL_LOOPS_PERMITTED in Native::runModally() 2021-02-22 09:08:09 +00:00
ed
08e6d2f9ee Windows: Set SWP_NOMOVE/SWP_NOSIZE flags when updating window position in HWNDComponent and use getSmallestIntegerContainer() when calculating scaled bounds 2021-02-20 17:34:26 +00:00
ed
363481540b VST3: Use CharPointer_UTF8 when converting from Steinberg::char8 to juce::String 2021-02-19 19:07:13 +00:00
ed
e1f892f6c3 VST3: Use UTF-16 encoding when assigning to a Steinberg::Vst::String128 in toString128() 2021-02-19 19:07:13 +00:00
ed
7b6d6d55cb AudioPluginHost: Fixed backwards compatibility with old internal plug-in names 2021-02-19 19:07:13 +00:00
ed
9622fc8e05 macOS: Added support for loading local files in WebBrowserComponent 2021-02-19 19:07:13 +00:00
ed
0fc0dce1b8 macOS: Don't call stop() in WebBrowserComponent::goToURL() when evaluating Javascript 2021-02-19 19:07:13 +00:00
ed
51cda82fb7 DSP: Fixed a documentation error in the Panner class 2021-02-19 19:07:12 +00:00
ed
f9f83fe3fa Correctly scale saturation value to 0-1 in HSL Colour constructor 2021-02-19 19:07:12 +00:00
ed
b59d40b056 Fixed a keyboard focus issue in the MenusDemo example 2021-02-19 19:07:12 +00:00
ed
e9caafad8b VST: Removed JUCE_WIN_PER_MONITOR_DPI_AWARE check around setThreadDPIAwarenessForWindow() call 2021-02-19 19:07:12 +00:00
ed
3d378d0384 Windows: Avoid setting WINDOWPOS in handlePositionChanging() when "new" coordinates are floating-point rounding errors due to scale factor conversion 2021-02-19 19:07:12 +00:00
ed
ed0851313b Displays: Added floating-point physical<->logical coordinate conversion methods 2021-02-19 19:07:12 +00:00
ed
a7c5337568 VST/VST3: Removed a workaround for checking whether DPI-aware windows were incorrectly scaled in editor resized() callback 2021-02-19 19:07:12 +00:00
ed
ec0345c093 Windows: Check whether child HWNDs were already scaled during the scale factor listener callback to avoid double-scaling them in handleDPIChanging() 2021-02-19 19:07:12 +00:00
ed
3c494b8a70 VST3: Improved stability of scaled plug-in windows 2021-02-19 19:07:12 +00:00
ed
e1039fc1c9 VST: Improved stability of scaled plug-in windows 2021-02-19 19:07:12 +00:00
ed
455e08da3f VST3: Added HWNDComponentWithParent class for Windows hosting and removed platform-specific IPlugViewContentScaleSupport implementation 2021-02-19 19:07:12 +00:00
ed
cb57904740 Windows: Improved support for DPI-aware embedded windows in HWNDComponent 2021-02-19 19:07:05 +00:00
reuk
be1e3df4d0 macOS: Be explicit about string encodings when logging assertions 2021-02-18 17:16:45 +00:00
reuk
67093bfe10 juceaide: Be explicit about commandline argument encoding 2021-02-18 17:16:45 +00:00
reuk
77ffb3839a CMake: Allow more than one AAX category to be specified 2021-02-18 17:16:45 +00:00
reuk
a31a4dc5f7
X11: Ensure repainting still works after destorying a GL context
On Linux, repaints are only issued if the number of received SHM
completion events matches the number of events initiated with
`xShmPutImage`.

Previously, destroying a GL context was calling `XSync (display, True)`
which cleared the event queue. Sometimes, this would cause an 'SHM
Completion Event' to be removed from the queue. This meant that the
number of received events would never match the number of initiated
events, and repainting would stop indefinitely.

By calling `XSync (display, False)` instead, we ensure that pending
events are kept in the queue, so any pending SHM completion event will
be found as usual during the next repaint timer callback.
2021-02-18 11:46:48 +00:00
reuk
c6280f7b8a
XmlElement: Fix rare crash when parsing truncated escape sequences 2021-02-18 10:54:29 +00:00
reuk
64b9366e8f
CharacterFunctions: Add new function to move pointer past whitespace 2021-02-18 10:54:29 +00:00
reuk
dc6b4ee43f
CMake: Update documentation with archiving instructions for AUv3 2021-02-18 10:54:29 +00:00
reuk
fd1a9b6d14
CMake: Fix issue where UIRequiresFullScreen key was not written to plist 2021-02-18 10:54:29 +00:00
reuk
b1917085db
AudioProcessor: Update listener callback with change details 2021-02-18 10:54:29 +00:00