mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Additional change to f5d875e
This also fixes the flickering issue caused by !Refresh: http://rainmeter.net/forum/viewtopic.php?f=14&t=16535#p92322
This commit is contained in:
parent
d14dfdbb0e
commit
150ccf8b14
@ -276,7 +276,7 @@ void MeterWindow::Dispose(bool refresh)
|
|||||||
void MeterWindow::Initialize()
|
void MeterWindow::Initialize()
|
||||||
{
|
{
|
||||||
m_Window = CreateWindowEx(
|
m_Window = CreateWindowEx(
|
||||||
WS_EX_TOOLWINDOW,
|
WS_EX_TOOLWINDOW | WS_EX_LAYERED,
|
||||||
METERWINDOW_CLASS_NAME,
|
METERWINDOW_CLASS_NAME,
|
||||||
nullptr,
|
nullptr,
|
||||||
WS_POPUP,
|
WS_POPUP,
|
||||||
@ -421,10 +421,8 @@ void MeterWindow::Refresh(bool init, bool all)
|
|||||||
RemoveWindowExStyle(WS_EX_TRANSPARENT);
|
RemoveWindowExStyle(WS_EX_TRANSPARENT);
|
||||||
|
|
||||||
m_Hidden = m_WindowStartHidden;
|
m_Hidden = m_WindowStartHidden;
|
||||||
|
m_TransparencyValue = m_AlphaValue;
|
||||||
|
|
||||||
// Set the window region
|
|
||||||
AddWindowExStyle(WS_EX_LAYERED);
|
|
||||||
UpdateWindow(m_AlphaValue);
|
|
||||||
Update(true);
|
Update(true);
|
||||||
|
|
||||||
if (m_BlurMode == BLURMODE_NONE)
|
if (m_BlurMode == BLURMODE_NONE)
|
||||||
|
Loading…
Reference in New Issue
Block a user