mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
- Switched from size()>0 to empty().
- Code cleanup.
This commit is contained in:
@ -2563,15 +2563,12 @@ bool CMeterWindow::ResizeWindow(bool reset)
|
||||
|
||||
SetWindowSizeVariables(m_WindowW, m_WindowH);
|
||||
|
||||
// If Background is not set, take a copy from the desktop
|
||||
if (m_Background == NULL)
|
||||
if (!m_NativeTransparency)
|
||||
{
|
||||
if (m_BackgroundMode == BGMODE_COPY)
|
||||
// If Background is not set, take a copy from the desktop
|
||||
if (m_Background == NULL && m_BackgroundMode == BGMODE_COPY)
|
||||
{
|
||||
if (!m_NativeTransparency)
|
||||
{
|
||||
m_Background = GrabDesktop(m_ScreenX, m_ScreenY, m_WindowW, m_WindowH);
|
||||
}
|
||||
m_Background = GrabDesktop(m_ScreenX, m_ScreenY, m_WindowW, m_WindowH);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user