File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
modules/juce_gui_basics/native Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -501,7 +501,7 @@ class ScopedThreadDPIAwarenessSetter::NativeImpl
501501
502502ScopedThreadDPIAwarenessSetter::ScopedThreadDPIAwarenessSetter (void * nativeWindow)
503503{
504- pimpl = std::make_unique<NativeImpl> ((HWND) nativeWindow);
504+ pimpl = nativeWindow != nullptr ? std::make_unique<NativeImpl> ((HWND) nativeWindow) : nullptr ;
505505}
506506
507507ScopedThreadDPIAwarenessSetter::~ScopedThreadDPIAwarenessSetter () = default ;
@@ -4315,6 +4315,7 @@ class HWNDComponentPeer final : public ComponentPeer
43154315 if (! hasMoved) flags |= SWP_NOMOVE;
43164316 if (! hasResized) flags |= SWP_NOSIZE;
43174317
4318+ ScopedThreadDPIAwarenessSetter setter { hwnd };
43184319 SetWindowPos (hwnd,
43194320 nullptr ,
43204321 newBounds.getX (),
@@ -4324,9 +4325,7 @@ class HWNDComponentPeer final : public ComponentPeer
43244325 flags);
43254326
43264327 if (hasResized && isValidPeer (this ))
4327- {
43284328 repaintNowIfTransparent ();
4329- }
43304329 }
43314330
43324331 bool sendInputAttemptWhenModalMessage ()
You can’t perform that action at this time.
0 commit comments