diff options
| -rw-r--r-- | vcl/inc/win/salframe.h | 1 | ||||
| -rw-r--r-- | vcl/win/window/salframe.cxx | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/vcl/inc/win/salframe.h b/vcl/inc/win/salframe.h index 676c70c1eca0..564872e65d2c 100644 --- a/vcl/inc/win/salframe.h +++ b/vcl/inc/win/salframe.h @@ -141,6 +141,7 @@ public: virtual void EndSetClipRegion() override; virtual void UpdateDarkMode() override; virtual bool GetUseDarkMode() const override; + virtual bool GetUseReducedAnimation() const override; constexpr vcl::WindowState state() const { return m_eState; } void UpdateFrameState(); diff --git a/vcl/win/window/salframe.cxx b/vcl/win/window/salframe.cxx index c911fff0840f..d68178ea022f 100644 --- a/vcl/win/window/salframe.cxx +++ b/vcl/win/window/salframe.cxx @@ -3126,6 +3126,13 @@ bool WinSalFrame::GetUseDarkMode() const return UseDarkMode(); } +bool WinSalFrame::GetUseReducedAnimation() const +{ + BOOL bEnableAnimation = FALSE; + SystemParametersInfoW(SPI_GETCLIENTAREAANIMATION, 0, &bEnableAnimation, 0); + return !bEnableAnimation; +} + static bool ImplHandleMouseMsg( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam ) { |
