• R/O
  • HTTP
  • SSH
  • HTTPS

MUtilities: 提交

MUtilities development repository


Commit MetaInfo

修订版05e9b6aefc200302a03913a5e662a83822049e2a (tree)
时间2021-12-24 05:09:07
作者LoRd_MuldeR <mulder2@gmx....>
CommiterLoRd_MuldeR

Log Message

Drop an unused function.

更改概述

差异

--- a/include/MUtils/GUI.h
+++ b/include/MUtils/GUI.h
@@ -81,7 +81,6 @@ namespace MUtils
8181
8282 //Sheet of glass
8383 MUTILS_API bool sheet_of_glass(QWidget *const window);
84- MUTILS_API bool sheet_of_glass_update(QWidget *const window);
8584
8685 //System colors
8786 MUTILS_API QColor system_color(const int &color_id);
--- a/src/GUI_Win32.cpp
+++ b/src/GUI_Win32.cpp
@@ -232,44 +232,6 @@ bool MUtils::GUI::sheet_of_glass(QWidget *const window)
232232 return true;
233233 }
234234
235-bool MUtils::GUI::sheet_of_glass_update(QWidget *const window)
236-{
237- const DwmIsCompositionEnabledFun dwmIsCompositionEnabledFun = MUtils::Win32Utils::resolve<DwmIsCompositionEnabledFun> (QLatin1String("dwmapi"), QLatin1String("DwmIsCompositionEnabled") );
238- const DwmExtendFrameIntoClientAreaFun dwmExtendFrameIntoClientAreaFun = MUtils::Win32Utils::resolve<DwmExtendFrameIntoClientAreaFun>(QLatin1String("dwmapi"), QLatin1String("DwmExtendFrameIntoClientArea"));
239- const DwmEnableBlurBehindWindowFun dwmEnableBlurBehindWindowFun = MUtils::Win32Utils::resolve<DwmEnableBlurBehindWindowFun> (QLatin1String("dwmapi"), QLatin1String("DwmEnableBlurBehindWindow") );
240-
241- //Required functions available?
242- BOOL bCompositionEnabled = FALSE;
243- if(dwmIsCompositionEnabledFun && dwmExtendFrameIntoClientAreaFun && dwmEnableBlurBehindWindowFun)
244- {
245- //Check if composition is currently enabled
246- if(HRESULT hr = dwmIsCompositionEnabledFun(&bCompositionEnabled))
247- {
248- qWarning("DwmIsCompositionEnabled function has failed! (error %d)", hr);
249- return false;
250- }
251- }
252-
253- //All functions available *and* composition enabled?
254- if(!bCompositionEnabled)
255- {
256- return false;
257- }
258-
259- //Create and populate the Blur Behind structure
260- DWM_BLURBEHIND bb;
261- memset(&bb, 0, sizeof(DWM_BLURBEHIND));
262- bb.fEnable = TRUE;
263- bb.dwFlags = DWM_BB_ENABLE;
264- if(HRESULT hr = dwmEnableBlurBehindWindowFun(reinterpret_cast<HWND>(window->winId()), &bb))
265- {
266- qWarning("DwmEnableBlurBehindWindow function has failed! (error %d)", hr);
267- return false;
268- }
269-
270- return true;
271-}
272-
273235 ///////////////////////////////////////////////////////////////////////////////
274236 // SYSTEM COLORS
275237 ///////////////////////////////////////////////////////////////////////////////
Show on old repository browser